Skip to content

Commit

Permalink
fix negative match test
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic committed Sep 10, 2024
1 parent 5682e9c commit b5a0043
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/astro/test/content-layer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ describe('Content Layer', () => {
assert.ok(json.hasOwnProperty('probes'));
assert.ok(Array.isArray(json.probes));
assert.equal(json.probes.length, 5);
assert.equal(json.probes.at(-1).id, 'philae-lander', 'Voyager probes should not be included');
assert.ok(
json.probes.every(({ id }) => !id.startsWith('voyager')),
'Voyager probes should not be included',
);
});

it('Returns data entry by id', async () => {
Expand Down

0 comments on commit b5a0043

Please sign in to comment.