Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Commit

Permalink
Bump jest to v27
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed May 27, 2021
1 parent 18c44c3 commit 0544954
Show file tree
Hide file tree
Showing 4 changed files with 1,021 additions and 1,385 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@
"asynciterator": "^3.0.0",
"benchmark": "^2.1.4",
"coveralls": "^3.0.2",
"jest": "^26.0.0",
"jest": "^27.0.1",
"manual-git-changelog": "^1.0.1",
"pre-commit": "^1.2.2",
"ts-jest": "^26.0.0",
"ts-jest": "^27.0.1",
"ts-node": "^9.0.0",
"tslint": "^6.0.0",
"tslint-eslint-rules": "^5.4.0",
Expand Down
7 changes: 5 additions & 2 deletions test/spec/replace03.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@ import { aliases as a, testAll } from '../util/utils';

describe.skip('We should respect the replace03 spec', () => {
const { s9 } = Data.data3();
testAll([
it('dummy', () => {
// Do nothing
});
/*testAll([
`REPLACE(${s9}, "(ab)|(a)", "[1=$1][2=$2]) = "[1=ab][2=]cd"`,
]);
]);*/
});

/**
Expand Down
6 changes: 5 additions & 1 deletion test/util/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ const DF = new DataFactory();
export function testAll(exprs: string[], config?: AsyncEvaluatorConfig) {
exprs.forEach((_expr) => {
const expr = _expr.trim();
const equals = expr.match(/ = [^=]*$/g).pop();
const matched = expr.match(/ = [^=]*$/g);
if (!matched) {
throw new Error(`Could not match '${expr}'`);
}
const equals = matched.pop();
const body = expr.replace(equals, '');
const _result = equals.replace(' = ', '');
const result = stringToTerm(replacePrefix(_result));
Expand Down
Loading

0 comments on commit 0544954

Please sign in to comment.