From 00280e45453fec4b144320b7f8297c578dc8f2ed Mon Sep 17 00:00:00 2001 From: Darren Yong Date: Wed, 25 Oct 2023 12:09:39 -0700 Subject: [PATCH] test: update test --- .../{invalid-pointers.js => invalid-pointers.spec.js} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename test/specs/invalid-pointers/{invalid-pointers.js => invalid-pointers.spec.js} (90%) diff --git a/test/specs/invalid-pointers/invalid-pointers.js b/test/specs/invalid-pointers/invalid-pointers.spec.js similarity index 90% rename from test/specs/invalid-pointers/invalid-pointers.js rename to test/specs/invalid-pointers/invalid-pointers.spec.js index 49348512..a6145a4d 100644 --- a/test/specs/invalid-pointers/invalid-pointers.js +++ b/test/specs/invalid-pointers/invalid-pointers.spec.js @@ -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 () { 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 "#/"'); } });