10 lines
254 B
JavaScript
10 lines
254 B
JavaScript
|
import {parse} from '@babel/parser';
|
||
|
import {expect} from 'chai';
|
||
|
|
||
|
import Sandbox from '../src/sandbox';
|
||
|
|
||
|
it('evaluates CallExpression', () => {
|
||
|
expect(new Sandbox(parse('test()'), {test: () => 69}).next().value)
|
||
|
.to.deep.include({value: 69});
|
||
|
});
|