Skip to content

Commit

Permalink
test: missing coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Aug 14, 2024
1 parent 35d4de9 commit 0d7ab74
Show file tree
Hide file tree
Showing 30 changed files with 8,200 additions and 456 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Licenses badge](https://raw.githubusercontent.com/brettz9/integrity-matters/master/badges/licenses-badge.svg?sanitize=true)](badges/licenses-badge.svg)
[![Licenses badge](https://raw.githubusercontent.com/es-joy/jsoe/main/badges/licenses-badge.svg?sanitize=true)](badges/licenses-badge.svg)
[![coverage badge](https://raw.githubusercontent.com/es-joy/jsoe/main/badges/coverage-badge.svg?sanitize=true)](badges/coverage-badge.svg)

# @es-joy/jsoe

Expand Down
1 change: 1 addition & 0 deletions badges/coverage-badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion cypress/e2e/demo-schema/schema-preloaded.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
beforeEach(() => {
cy.visit(`http://127.0.0.1:8087/demo/schema-preloaded${
item ? '-array' : ''
}.html`, {
}-instrumented.html`, {
onBeforeLoad (win) {
cy.stub(win.console, 'log').as('consoleLog');
}
Expand Down
5 changes: 4 additions & 1 deletion demo/index-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,10 @@ setTimeout(function () {
id: 'initializeWithValue',
$on: {
async click () {
await keyPathNotExpectedTypeChoices.setValue(42);
await keyPathNotExpectedTypeChoices.setValue({
type: 'literal',
value: 42
});
}
}
}, ['Initialize with a value']],
Expand Down
32 changes: 32 additions & 0 deletions demo/schema-preloaded-array-instrumented.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>JSOE Demo</title>
<link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon" />
<link rel="stylesheet" href="../src/jsoe.css" />
<!-- SCEditor (CKEditor was appealing for features but won't support unrecognized tags:
https://github.com/ckeditor/ckeditor5/issues/592 )
Filed https://github.com/samclarke/SCEditor/issues/584 to be able to import as ES6 module
-->
<link rel="stylesheet" href="../node_modules/sceditor/minified/themes/default.min.css" />

<script src="../node_modules/sceditor/minified/sceditor.min.js"></script>
<script src="../node_modules/sceditor/minified/formats/bbcode.js"></script>
<script src="../node_modules/sceditor/minified/formats/xhtml.js"></script>
<script type="importmap">
{
"imports": {
"jamilih": "../vendor/jamilih/dist/jml-es.js",
"typeson-registry": "../vendor/typeson-registry/dist/index.js",
"zod": "../vendor/zod/lib/index.mjs",
"zodex": "../vendor/zodex/dist/esm/index.js",
"react": "./react-dummy.js"
}
}
</script>
<script type="module" src="../instrumented/demo/schema-preloaded-array.js"></script>
</head>
<body>
</body>
</html>
32 changes: 32 additions & 0 deletions demo/schema-preloaded-instrumented.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>JSOE Demo</title>
<link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon" />
<link rel="stylesheet" href="../src/jsoe.css" />
<!-- SCEditor (CKEditor was appealing for features but won't support unrecognized tags:
https://github.com/ckeditor/ckeditor5/issues/592 )
Filed https://github.com/samclarke/SCEditor/issues/584 to be able to import as ES6 module
-->
<link rel="stylesheet" href="../node_modules/sceditor/minified/themes/default.min.css" />

<script src="../node_modules/sceditor/minified/sceditor.min.js"></script>
<script src="../node_modules/sceditor/minified/formats/bbcode.js"></script>
<script src="../node_modules/sceditor/minified/formats/xhtml.js"></script>
<script type="importmap">
{
"imports": {
"jamilih": "../vendor/jamilih/dist/jml-es.js",
"typeson-registry": "../vendor/typeson-registry/dist/index.js",
"zod": "../vendor/zod/lib/index.mjs",
"zodex": "../vendor/zodex/dist/esm/index.js",
"react": "./react-dummy.js"
}
}
</script>
<script type="module" src="../instrumented/demo/schema-preloaded.js"></script>
</head>
<body>
</body>
</html>
235 changes: 118 additions & 117 deletions instrumented/demo/index-schema.js

Large diffs are not rendered by default.

231 changes: 116 additions & 115 deletions instrumented/demo/index.js

Large diffs are not rendered by default.

3,837 changes: 3,837 additions & 0 deletions instrumented/demo/schema-preloaded-array.js

Large diffs are not rendered by default.

3,837 changes: 3,837 additions & 0 deletions instrumented/demo/schema-preloaded.js

Large diffs are not rendered by default.

11 changes: 7 additions & 4 deletions instrumented/formats/schema.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions instrumented/fundamentalTypes/arrayReferenceType.js

Large diffs are not rendered by default.

23 changes: 12 additions & 11 deletions instrumented/fundamentalTypes/dateType.js

Large diffs are not rendered by default.

65 changes: 0 additions & 65 deletions instrumented/fundamentalTypes/functionType.js

This file was deleted.

6 changes: 3 additions & 3 deletions instrumented/fundamentalTypes/neverType.js

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

Loading

0 comments on commit 0d7ab74

Please sign in to comment.