UNPKG

@ryusei/light

Version:

<div align="center"> <a href="https://light.ryuseijs.com"> <img alt="RyuseiLight" src="https://light.ryuseijs.com/images/svg/logo.svg" width="70"> </a>

58 lines (53 loc) 886 B
import { CATEGORY_OPERATOR } from '../../../constants/categories'; // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators describe( 'javascript', () => { test( 'can tokenize operators.', () => { [ '+', '-', '~', '!', '/', '*', '%', '**', '<', '>', '<=', '>=', '==', '!=', '===', '!==', '<<', '>>', '>>>', '&', '|', '^', '&&', '||', '??', '?', '=', '*=', '**=', '/=', '%=', '+=', '-=', '<<=', '>>=', '>>>=', '&=', '^=', '|=', '&&=', '||=', '??=', ':', ].forEach( operator => { expect( operator ).toBeTokenized( 'javascript', [ [ CATEGORY_OPERATOR, operator ] ] ); } ); } ); } );