Skip to content

Commit

Permalink
test(#298): better assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
satanTime committed Feb 14, 2021
1 parent 5405c08 commit 3afd818
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/issue-298/case.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ describe('issue-298:case', () => {
expect(instance1).not.toBe(instance2);
expect(instance1).not.toBe(instance3);
expect(instance2).not.toBe(instance3);
expect(instance1.value).toEqual('d1');
expect(instance2.value).toEqual('d2');
expect(instance3.value).toEqual('d3');
});
});

Expand Down Expand Up @@ -66,6 +69,9 @@ describe('issue-298:case', () => {
expect(instances1.length).toEqual(1);
expect(instances2.length).toEqual(1);
expect(instances3.length).toEqual(1);
expect(instances1[0].value).toEqual('d1');
expect(instances2[0].value).toEqual('d2');
expect(instances3[0].value).toEqual('d3');
});
});
});

0 comments on commit 3afd818

Please sign in to comment.