fontoxpath
Version:
A minimalistic XPath 3.1 engine in JavaScript
16 lines (12 loc) • 374 B
JavaScript
import * as slimdom from 'slimdom';
import {
evaluateXPathToBoolean
} from 'fontoxpath';
describe('Deprecated features', () => {
let documentNode;
beforeEach(() => {
documentNode = new slimdom.Document();
});
it('Does not accept functions as tests anymore',
() => chai.assert.throws(() => evaluateXPathToBoolean('self::false()', documentNode), 'XPST0003'));
});