Skip to content

Commit

Permalink
[CodeFactor] Apply fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
code-factor committed Oct 14, 2022
1 parent 000b00d commit 01eb49e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion performance/backend.benchmark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import benchmarkRunner from '@fontoxml/fonto-benchmark-runner';
import { Document, Node, parseXmlDocument } from 'slimdom';
import {
evaluateXPathToBoolean,
evaluateXPathToFirstNode,
evaluateXPathToNodes,
ReturnType,
evaluateXPathToFirstNode,
} from '../src/index';
import jsonMlMapper from '../test/helpers/jsonMlMapper';
import evaluateXPathWithJsCodegen from '../test/specs/parsing/jsCodegen/evaluateXPathWithJsCodegen';
Expand Down
4 changes: 2 additions & 2 deletions test/specs/annotation.tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ describe('annotating varRef', () => {
* @param context the context in which the variables are inserted
* @param variables
*/
function insertVariables(context: AnnotationContext, variables: Array<[string, SequenceType]>) {
function insertVariables(context: AnnotationContext, variables: [string, SequenceType][]) {
variables.forEach((element) => {
context.insertVariable(element[0], element[1]);
});
Expand All @@ -473,6 +473,6 @@ function insertVariables(context: AnnotationContext, variables: Array<[string, S
// describe('Annotating ', () => {
// it('',
// () => {
// // assertValueType('', ValueType. , undefined)
// // assertValueType('', ValueType. , undefined)
// });
// });
2 changes: 1 addition & 1 deletion test/specs/expressions/jsCodegen/string.tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import {
parseScript,
ReturnType,
} from 'fontoxpath';
import escapeJavaScriptString from 'fontoxpath/jsCodegen/escapeJavaScriptString';
import * as slimdom from 'slimdom';
import jsonMlMapper from 'test-helpers/jsonMlMapper';
import escapeJavaScriptString from 'fontoxpath/jsCodegen/escapeJavaScriptString';
import evaluateXPathWithJsCodegen from '../../parsing/jsCodegen/evaluateXPathWithJsCodegen';

describe('string tests', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/xQueryXUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
Language,
parseScript,
} from 'fontoxpath';
import { Document, Element, Text, parseXmlDocument, XMLSerializer } from 'slimdom';
import { Document, Element, parseXmlDocument, Text, XMLSerializer } from 'slimdom';

function removeInsignificantWhitespace(root: Document) {
const nonSignificantWhitespace = evaluateXPathToNodes<Text>('//*/text()', root, null, null, {
Expand Down

0 comments on commit 01eb49e

Please sign in to comment.