Skip to content

Commit

Permalink
chore: add mutation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeswr committed Sep 8, 2024
1 parent ed9f22d commit 2020c3f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/N3Store-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,11 @@ describe('Store', () => {
expect(nextDataset.match(namedNode('s2'), null, null).has(new Quad('s2', 'p2', 'o2'))).toBe(true);
expect(nextDataset.match(null, namedNode('p2'), null).has(new Quad('s2', 'p2', 'o2'))).toBe(true);
expect(nextDataset.match(null, null, namedNode('o2')).has(new Quad('s2', 'p2', 'o2'))).toBe(true);
expect(nextDataset.size).toBe(2);
nextDataset.add(new Quad('s2', 'p1', 'onew'));
expect(nextDataset.size).toBe(3);
nextDataset.add(new Quad('s2', 'p1', 'onew'));
expect(nextDataset.size).toBe(3);

nextDataset.delete(new Quad('s2', 'p1', 'o1'));
nextDataset.delete(new Quad('s2', 'p2', 'o2'));
Expand Down

0 comments on commit 2020c3f

Please sign in to comment.