Skip to content

Commit a8553de

Browse files
authored
Merge pull request #21 from getmimo/add-test-functions
Add test functions
2 parents 856161d + 5e7cca6 commit a8553de

File tree

10 files changed

+4887
-5425
lines changed

10 files changed

+4887
-5425
lines changed

dist/index.d.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,26 @@ declare class Sphinx {
2323
firstElementName: string;
2424
secondElementName: string;
2525
}): void;
26+
firstElementIsInsideSecondAll({ firstElementName, secondElementName, }: {
27+
firstElementName: string;
28+
secondElementName: string;
29+
}): void;
2630
elementTextIsSet({ elementName, text, }: {
2731
elementName: string;
2832
text: string;
2933
}): void;
34+
elementTextIsSetAll({ elementName, text, }: {
35+
elementName: string;
36+
text: string;
37+
}): void;
3038
elementTextIsSetLoose({ elementName, text, }: {
3139
elementName: string;
3240
text: string;
3341
}): void;
42+
elementTextIsSetLooseAll({ elementName, text, }: {
43+
elementName: string;
44+
text: string;
45+
}): void;
3446
elementAttributeSetToCorrectValue({ elementName, attributeName, attributeValue, }: {
3547
elementName: any;
3648
attributeName: any;
@@ -59,7 +71,7 @@ declare class Sphinx {
5971
}
6072
declare function isTextSet(root: any, elementName: any): boolean;
6173
declare function isTextEqual(root: any, elementName: any, text: any): boolean;
62-
declare function isTextSimilar(root: any, elementName: any, text: any): boolean;
74+
declare function isTextSimilar(root: any, elementName: any, text: any): any;
6375
declare function isAttributeSet(root: any, elementName: any, attributeName: any, attributeValue: any): boolean;
6476
declare function buildSphinx(root: any, htmlCode: string, test: any, expect: any): Sphinx;
6577
declare function buildSphinxWithJSDOM(test: any, expect: any): Sphinx;

dist/index.js

Lines changed: 45 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jest.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ module.exports = {
167167
// timers: "real",
168168

169169
// A map from regular expressions to paths to transformers
170-
// transform: null,
170+
transform: {
171+
'^.+\\.(ts|tsx)$': 'ts-jest',
172+
},
171173

172174
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
173175
// transformIgnorePatterns: [

0 commit comments

Comments
 (0)