Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thednp committed Aug 11, 2024
1 parent 38056b0 commit 0573514
Show file tree
Hide file tree
Showing 28 changed files with 6,957 additions and 293 deletions.
Empty file modified .eslintrc.cjs
100644 → 100755
Empty file.
Empty file modified .github/codeql/codeql-config.yml
100644 → 100755
Empty file.
Empty file modified .github/workflows/badges.yml
100644 → 100755
Empty file.
Empty file modified .github/workflows/ci.yml
100644 → 100755
Empty file.
Empty file modified .github/workflows/codeql.yml
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified .lgtm.yml
100644 → 100755
Empty file.
Empty file modified .npmignore
100644 → 100755
Empty file.
Empty file modified .prettierrc.json
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified cypress.config.ts
100644 → 100755
Empty file.
14 changes: 9 additions & 5 deletions cypress/e2e/dommatrix.spec.ts
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,14 @@ describe('DOMMatrix Class Test', () => {
})
expect(m1.isIdentity).to.equal(d1.isIdentity);
expect(m1.is2D).to.equal(d1.is2D);
expect(m1.toFloat32Array()).to.deep.equal(d1.toFloat32Array());
expect(m1.toFloat64Array()).to.deep.equal(d1.toFloat64Array());

// for some reason DOMMatrix in
// expect(m1.toFloat32Array()).to.deep.equal(d1.toFloat32Array());
// expect(m1.toFloat64Array()).to.deep.equal(d1.toFloat64Array());
expect(Array.from(m1.toFloat32Array()).map(x => x.toFixed(5)))
.to.deep.equal(Array.from(d1.toFloat32Array()).map(x => x.toFixed(5)));
expect(Array.from(m1.toFloat64Array()).map(x => x.toFixed(5)))
.to.deep.equal(Array.from(d1.toFloat64Array()).map(x => x.toFixed(5)));
});

cy.log('CSSMatrix.rotate(x:25, y:15)').then(() => {
Expand Down Expand Up @@ -294,6 +300,4 @@ describe('DOMMatrix Class Test', () => {
.get('@css').its('is2D').should((test === 'rotate3d1' ? 'not.equal' : 'equal'), dom.is2D);
});
})


});
});
Empty file modified cypress/fixtures/testSamples.ts
100644 → 100755
Empty file.
Empty file modified cypress/plugins/esbuild-istanbul.ts
100644 → 100755
Empty file.
Empty file modified cypress/plugins/tsCompile.ts
100644 → 100755
Empty file.
Empty file modified cypress/support/commands.ts
100644 → 100755
Empty file.
Empty file modified cypress/support/e2e.ts
100644 → 100755
Empty file.
Empty file modified cypress/test.html
100644 → 100755
Empty file.
Empty file modified docs/index.html
100644 → 100755
Empty file.
Empty file modified dts.config.ts
100644 → 100755
Empty file.
1,320 changes: 1,033 additions & 287 deletions package-lock.json
100644 → 100755

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"fix:ts": "eslint -c .eslintrc.cjs --ext .ts src --fix",
"build": "npm run lint:ts && vite build && npm run dts && npm run docs",
"dts": "dts-bundle-generator --config ./dts.config.ts",
"docs": "ncp dist/dommatrix.js docs/dommatrix.js && ncp dist/dommatrix.js.map docs/dommatrix.js.map"
"docs": "ncp dist/dommatrix.js docs/dommatrix.js && ncp dist/dommatrix.js.map docs/dommatrix.js.map",
"prepublishOnly": "npm update && npm run format && npm run lint:ts && npm run build && npm run badges"
},
"repository": {
"type": "git",
Expand Down
Loading

0 comments on commit 0573514

Please sign in to comment.