You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
555 B
20 lines
555 B
const webfuse = require('../dist/webfuse')
|
|
|
|
const chai = require('chai');
|
|
const assert = chai.assert;
|
|
|
|
describe('Provider', function() {
|
|
|
|
it('lookup should throw not implemented error', function() {
|
|
const provider = new webfuse.Provider();
|
|
|
|
return provider.lookup(1, 'root').then(
|
|
() => Promise.reject(new Error("reject expected")),
|
|
err => {
|
|
assert.instanceOf(err, webfuse.BadState);
|
|
assert.equal(webfuse.BadState.NOT_IMPLEMENTED, err.code);
|
|
}
|
|
);
|
|
});
|
|
|
|
}); |