From 01cd85595b17cec8d7b3403623f376b1c0c585ee Mon Sep 17 00:00:00 2001 From: Florian Hartwich Date: Thu, 30 Mar 2017 11:18:33 +0200 Subject: [PATCH] Final basic jasmine test --- project-manager/src/app/test-example/basic-test.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/project-manager/src/app/test-example/basic-test.spec.ts b/project-manager/src/app/test-example/basic-test.spec.ts index c9fe75a..47ed9e6 100644 --- a/project-manager/src/app/test-example/basic-test.spec.ts +++ b/project-manager/src/app/test-example/basic-test.spec.ts @@ -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); });