Browse Source

test: fix testing error

pull/4510/head
mehmet-erim 6 years ago
parent
commit
f76e510bf2
  1. 20
      npm/ng-packs/packages/core/src/lib/tests/routes.service.spec.ts

20
npm/ng-packs/packages/core/src/lib/tests/routes.service.spec.ts

@ -33,10 +33,10 @@ describe('Routes Service', () => {
const visible = await service.visible$.pipe(take(1)).toPromise();
expect(flat.length).toBe(4);
expect(flat[0].name).toBe('foo');
expect(flat[1].name).toBe('baz');
expect(flat[2].name).toBe('x');
expect(flat[3].name).toBe('bar');
expect(flat[3].name).toBe('foo');
expect(flat[0].name).toBe('baz');
expect(flat[1].name).toBe('x');
expect(flat[2].name).toBe('bar');
expect(tree.length).toBe(1);
expect(tree[0].name).toBe('foo');
@ -88,8 +88,8 @@ describe('Routes Service', () => {
const visible = service.visible;
expect(flat.length).toBe(2);
expect(flat[0].name).toBe('foo');
expect(flat[1].name).toBe('x');
expect(flat[1].name).toBe('foo');
expect(flat[0].name).toBe('x');
expect(tree.length).toBe(1);
expect(tree[0].name).toBe('foo');
@ -114,10 +114,10 @@ describe('Routes Service', () => {
const visible = service.visible;
expect(flat.length).toBe(4);
expect(flat[0].name).toBe('foo');
expect(flat[1].name).toBe('baz');
expect(flat[2].name).toBe('x');
expect(flat[3].name).toBe('bar');
expect(flat[3].name).toBe('foo');
expect(flat[0].name).toBe('baz');
expect(flat[1].name).toBe('x');
expect(flat[2].name).toBe('bar');
expect(tree.length).toBe(1);
expect(tree[0].name).toBe('foo');

Loading…
Cancel
Save