import { should } from 'chai' ; import { tokenize , Token } from './utils/tokenize' ; describe ( "Extern aliases" , ( ) => { before ( ( ) => { should ( ) ; } ) ; describe ( "Extern aliases" , ( ) => { it ( "declaration" , async ( ) => { const input = `
extern alias X;
extern alias Y;` ; const tokens = await tokenize ( input ) ; tokens . should . deep . equal ( [ Token . Keywords . Extern , Token . Keywords . Alias , Token . Variables . Alias ( "X" ) , Token . Punctuation . Semicolon , Token . Keywords . Extern , Token . Keywords . Alias , Token . Variables . Alias ( "Y" ) , Token . Punctuation . Semicolon ] ) ; } ) ; } ) ; } ) ;