import test from 'ava' ; import { Ast } from '../src/parser' ; import generate from '../src/generator' ; test ( 'generates empty code from an empty AST' , t => { const ast = { body : [ ] , type : 'PROGRAM' } ; const code = generate ( ast ) ; t . deepEqual ( code , '' ) ; } ) ;