Skip to content

Commit

Permalink
test: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenyong committed Oct 25, 2023
1 parent 2b80925 commit 00280e4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ const { expect } = chai;
chai.use(chaiSubset);

describe('Schema with invalid pointers', function () {
it('should throw an error for an invalid pointer', async function () {
it.only('should throw an error for an invalid pointer', async function () {

Check warning on line 13 in test/specs/invalid-pointers/invalid-pointers.spec.js

View workflow job for this annotation

GitHub Actions / linting

Unexpected exclusive mocha test

Check warning on line 13 in test/specs/invalid-pointers/invalid-pointers.spec.js

View workflow job for this annotation

GitHub Actions / linting

Unexpected exclusive mocha test
try {
await $RefParser.dereference(path.rel('specs/invalid-pointers/invalid.json'));
helper.shouldNotGetCalled();
} catch (err) {
expect(err).to.be.an.instanceOf(InvalidPointerError);
expect(err.message).to.contain('Invalid $ref pointer "f". Pointers must begin with "#/"');
expect(err.message).to.contain('Invalid $ref pointer "./invalid.json#f". Pointers must begin with "#/"');
}
});

Expand Down

0 comments on commit 00280e4

Please sign in to comment.