Final basic jasmine test
parent
86b664ecc5
commit
01cd85595b
|
@ -9,7 +9,7 @@ describe('Basic test', () => {
|
||||||
someInt = 2;
|
someInt = 2;
|
||||||
});
|
});
|
||||||
|
|
||||||
// Testfall
|
// Testfall 1
|
||||||
it('should succeed on fundamental matchers', () => {
|
it('should succeed on fundamental matchers', () => {
|
||||||
expect(1+1).toBe(2)
|
expect(1+1).toBe(2)
|
||||||
expect(null).toEqual(null);
|
expect(null).toEqual(null);
|
||||||
|
@ -22,11 +22,13 @@ describe('Basic test', () => {
|
||||||
expect('World').not.toContain('Hello');
|
expect('World').not.toContain('Hello');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//Testfall 2
|
||||||
it('someInt should have value from beforeEach', () => {
|
it('someInt should have value from beforeEach', () => {
|
||||||
expect(someInt).toBe(2);
|
expect(someInt).toBe(2);
|
||||||
someInt = 20;
|
someInt = 20;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Testfall 3
|
||||||
it('someInt should have overwritten value from beforeEach', () => {
|
it('someInt should have overwritten value from beforeEach', () => {
|
||||||
expect(someInt).toBe(2);
|
expect(someInt).toBe(2);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue