babeler/test/identifier.js

10 lines
247 B
JavaScript
Raw Permalink Normal View History

2022-02-27 07:32:34 -06:00
import {parse} from '@babel/parser';
import {expect} from 'chai';
import Sandbox from '../src/sandbox';
it('evaluates Identifier', () => {
expect(new Sandbox(parse('const test = 69; test')).next().value)
.to.deep.include({value: 69});
});