Created
January 18, 2020 19:05
-
-
Save obsd/d370cd8d7506cd0ebe6e71c8fce8b918 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { AppComponent } from './app.component'; | |
describe('AppComponent', () => { | |
let appComponent = new AppComponent(); | |
it('should create the app', () => { | |
const app = appComponent; | |
expect(app).toBeTruthy(); | |
}); | |
it('should have `app works!` title', () => { | |
const title = appComponent.title; | |
expect(title).toEqual('app works!'); <---- This is bad :( | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment