babeler/test/call-expression.js
2022-02-27 07:32:34 -06:00

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});
});