Fix require reference

This commit is contained in:
Yarmo Mackenbach 2022-09-20 21:53:30 +02:00
parent 45c08ffda7
commit 4ae4decf91
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1

View file

@ -17,7 +17,7 @@ const chai = require('chai')
const expect = chai.expect const expect = chai.expect
chai.use(require('chai-as-promised')) chai.use(require('chai-as-promised'))
const doipjs = require('../dist/doip') const doipjs = require('../src')
const fingerprint = '3637202523e7c1309ab79e99ef2dc5827b445f4b' const fingerprint = '3637202523e7c1309ab79e99ef2dc5827b445f4b'
const plaintextCorrectProofData = [ const plaintextCorrectProofData = [
@ -40,7 +40,7 @@ const bcryptIncorrectProofData = [
] ]
const claimData = doipjs.claimDefinitions.data.irc.processURI('irc://domain.tld/test') const claimData = doipjs.claimDefinitions.data.irc.processURI('irc://domain.tld/test')
describe('run', () => { describe('verifications.run', () => {
it('should verify a plaintext proof', async () => { it('should verify a plaintext proof', async () => {
const result = await doipjs.verifications.run(plaintextCorrectProofData, claimData, fingerprint) const result = await doipjs.verifications.run(plaintextCorrectProofData, claimData, fingerprint)
expect(result.result).to.be.true expect(result.result).to.be.true