2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-06-17 19:21:20 +03:00

feat: update core deps (#120)

* feat: use swc.rs instead of babel

* BREAKING CHANGE: now we use swc.rs as main bundler and transpiler instead of babel
  - jest now uses swc
  - rollup now uses swc

* feat: benchmark now separate package with `npm start` and colored output
  - benchmark as separate package with error throw if package drops performance

* feat: all lerna packages now using scripts/pkg-task

* feat(github): publish to npm and github registry
  - when release was created this action automaticly publish packages to npm and github

* feat(github): move all from Travis CI to Github Actions
  - code analysis and tests now using github actions

* test: increase tests coverage
  - add more tests for @bbob/react, @bbob/vue2 and @bbob/parser
This commit is contained in:
Nikolay Kostyurin
2021-11-29 00:33:06 +02:00
committed by GitHub
parent 86d1dde106
commit da6709d437
66 changed files with 12410 additions and 20669 deletions
+13
View File
@@ -84,6 +84,19 @@ describe('lexer', () => {
expect(tokens).toBeMantchOutput(output);
});
test('paired tag with single param', () => {
const input = '[url=someval]GET[/url]';
const tokens = tokenize(input);
const output = [
[TYPE.TAG, 'url', '0', '0'],
[TYPE.ATTR_VALUE, 'someval', '0', '0'],
[TYPE.WORD, 'GET', '0', '0'],
[TYPE.TAG, '/url', '0', '0'],
];
expect(tokens).toBeMantchOutput(output);
});
test('single fake tag', () => {
const input = '[ user=111]';
const tokens = tokenize(input);
+1 -1
View File
@@ -1,5 +1,5 @@
import {parse} from '../src'
import render from 'posthtml-render'
import { render } from 'posthtml-render'
describe('posthtml-render', () => {