UNPKG

392 BJavaScriptView Raw
1
2import { parse, compose } from './';
3
4it('should pass', () => {
5 expect(true).toBe(true);
6});
7
8it('should parse to object and back to original string', () => {
9 let styles = [
10 '-',
11 '-C',
12 '-CG_color_D_red,eee_Zx--ox!my!',
13 '-CP10G_ccc_D_red,Cyan_Zx--primary blinking!cursor!'
14 ];
15 styles.map((test) => {
16 expect(compose(parse(test))).toBe(test);
17 })
18})
\No newline at end of file