Skip to content

Commit

Permalink
Merge pull request #130 from web-atoms/dev
Browse files Browse the repository at this point in the history
Unit tests fixed
  • Loading branch information
ackava committed Feb 15, 2020
2 parents 79d0534 + 38a3539 commit d59a931
Show file tree
Hide file tree
Showing 13 changed files with 464 additions and 95 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/node.yml
Expand Up @@ -19,7 +19,8 @@ jobs:
- run: npm install -D istanbul remap-istanbul
- run: tsc
# - run: typedoc --mode modules --out ./docs --tsconfig ./tsconfig.json src --excludeExternals --module umd --name web-atoms-core --excludePrivate --excludeNotExported --exclude "tests/**/*.ts"
- run: node ./node_modules/.bin/istanbul cover ./dist/test.js
# - run: node ./node_modules/.bin/istanbul cover ./node_modules/@web-atoms/unit-test/index.js ./dist/test.js
- run: npm run test
- run: node ./node_modules/.bin/remap-istanbul -i ./coverage/coverage.json -t json -o ./coverage/coverage.json
- run: codecov
env:
Expand Down
273 changes: 258 additions & 15 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions package.json
@@ -1,10 +1,10 @@
{
"name": "@web-atoms/core",
"version": "1.1.80",
"version": "1.1.84",
"description": "Web Atoms Core",
"main": "index.js",
"scripts": {
"test": "istanbul cover ./dist/test.js",
"test": "istanbul cover ./node_modules/@web-atoms/unit-test/index.js ./dist/tests",
"posttest": "remap-istanbul -i ./coverage/coverage.json -t html -o ./html-report",
"postversion": "git push --follow-tags"
},
Expand All @@ -26,7 +26,7 @@
"devDependencies": {
"@types/jquery": "^3.3.30",
"@web-atoms/module-loader": "^1.0.375",
"@web-atoms/unit-test": "^1.0.12",
"@web-atoms/unit-test": "^1.0.23",
"colors": "^1.4.0",
"istanbul": "^0.4.5",
"jsdom": "^15.1.1",
Expand Down
5 changes: 5 additions & 0 deletions src/core/AtomBridge.ts
Expand Up @@ -418,3 +418,8 @@ export class AtomBridge {
declare var window, global;
const globalNS = (typeof window !== "undefined" ? window : (global as any)) as any;
globalNS.AtomBridge = AtomBridge;

if (window) {
AtomBridge.instance = new AtomElementBridge();
AtomBridge.platform = "web";
}

0 comments on commit d59a931

Please sign in to comment.