UNPKG

cream-and-sugar

Version:

A deliciously functional syntax for JavaScript with native support for JSX

14 lines (9 loc) 292 B
import assert from 'assert'; import { compileCode } from '../src/compiler/compiler'; describe('Comments', () => { it('should ignore comments', () => { const toCompile = '# this is a comment'; const expected = '\n'; assert.equal(compileCode(toCompile), expected); }); });