mirror of https://gitee.com/bigwinds/arangodb
14 lines
385 B
JavaScript
14 lines
385 B
JavaScript
/*globals describe, it */
|
|
'use strict';
|
|
const expect = require('chai').expect;
|
|
|
|
describe('@arangodb/locals', () => {
|
|
const context = {hello: 'world'};
|
|
it('should expose module.context', () => {
|
|
module.context = context;
|
|
const locals = require('@arangodb/locals');
|
|
expect(locals.context).to.equal(module.context);
|
|
expect(locals.context).to.equal(context);
|
|
});
|
|
});
|