Final basic jasmine test

merge-requests/1/head
Florian Hartwich 2017-03-30 11:18:33 +02:00
parent 86b664ecc5
commit 01cd85595b
1 changed files with 3 additions and 1 deletions

View File

@ -9,7 +9,7 @@ describe('Basic test', () => {
someInt = 2;
});
// Testfall
// Testfall 1
it('should succeed on fundamental matchers', () => {
expect(1+1).toBe(2)
expect(null).toEqual(null);
@ -22,11 +22,13 @@ describe('Basic test', () => {
expect('World').not.toContain('Hello');
});
//Testfall 2
it('someInt should have value from beforeEach', () => {
expect(someInt).toBe(2);
someInt = 20;
});
// Testfall 3
it('someInt should have overwritten value from beforeEach', () => {
expect(someInt).toBe(2);
});