Skip to content

Commit

Permalink
Merge pull request #21 from getmimo/add-test-functions
Browse files Browse the repository at this point in the history
Add test functions
  • Loading branch information
loriana-p authored Aug 11, 2021
2 parents 856161d + 5e7cca6 commit a8553de
Show file tree
Hide file tree
Showing 10 changed files with 4,887 additions and 5,425 deletions.
14 changes: 13 additions & 1 deletion dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,26 @@ declare class Sphinx {
firstElementName: string;
secondElementName: string;
}): void;
firstElementIsInsideSecondAll({ firstElementName, secondElementName, }: {
firstElementName: string;
secondElementName: string;
}): void;
elementTextIsSet({ elementName, text, }: {
elementName: string;
text: string;
}): void;
elementTextIsSetAll({ elementName, text, }: {
elementName: string;
text: string;
}): void;
elementTextIsSetLoose({ elementName, text, }: {
elementName: string;
text: string;
}): void;
elementTextIsSetLooseAll({ elementName, text, }: {
elementName: string;
text: string;
}): void;
elementAttributeSetToCorrectValue({ elementName, attributeName, attributeValue, }: {
elementName: any;
attributeName: any;
Expand Down Expand Up @@ -59,7 +71,7 @@ declare class Sphinx {
}
declare function isTextSet(root: any, elementName: any): boolean;
declare function isTextEqual(root: any, elementName: any, text: any): boolean;
declare function isTextSimilar(root: any, elementName: any, text: any): boolean;
declare function isTextSimilar(root: any, elementName: any, text: any): any;
declare function isAttributeSet(root: any, elementName: any, attributeName: any, attributeValue: any): boolean;
declare function buildSphinx(root: any, htmlCode: string, test: any, expect: any): Sphinx;
declare function buildSphinxWithJSDOM(test: any, expect: any): Sphinx;
54 changes: 45 additions & 9 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ module.exports = {
// timers: "real",

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

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

0 comments on commit a8553de

Please sign in to comment.