Skip to content

Commit

Permalink
remove comment that causes tests to fail #17
Browse files Browse the repository at this point in the history
  • Loading branch information
tbela99 committed Oct 7, 2023
1 parent 7a9594d commit 49da0d7
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 11 deletions.
2 changes: 0 additions & 2 deletions bunfig.toml

This file was deleted.

2 changes: 1 addition & 1 deletion dist/index-umd-web.js
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@
}
}
toUrl() {
// /*# sourceMappingURL=${url} */
// sourceMappingURL = ${url}
return `data:application/json,${encodeURIComponent(JSON.stringify(this.toJSON()))}`;
}
toJSON() {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ class SourceMap {
}
}
toUrl() {
// /*# sourceMappingURL=${url} */
// sourceMappingURL = ${url}
return `data:application/json,${encodeURIComponent(JSON.stringify(this.toJSON()))}`;
}
toJSON() {
Expand Down
2 changes: 1 addition & 1 deletion dist/lib/renderer/sourcemap/sourcemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class SourceMap {
}
}
toUrl() {
// /*# sourceMappingURL=${url} */
// sourceMappingURL = ${url}
return `data:application/json,${encodeURIComponent(JSON.stringify(this.toJSON()))}`;
}
toJSON() {
Expand Down
3 changes: 0 additions & 3 deletions happydom.ts

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"scripts": {
"build": "rollup -c",
"test": "web-test-runner \"test/**/*.web.spec.js\" --node-resolve --root-dir=.; mocha --reporter-options='maxDiffSize=1801920' \"test/**/*.node.spec.js\"",
"test:cov": "web-test-runner \"test/**/*.web.spec.js\" --node-resolve --root-dir=. --coverage; c8 --reporter=html --reporter=text --reporter=json-summary mocha --reporter-options='maxDiffSize=1801920' \"test/**/*.spec.js\"",
"test:cov": "c8 --reporter=html --reporter=text --reporter=json-summary mocha --reporter-options='maxDiffSize=1801920' \"test/**/*.node.spec.js\"",
"test:web-cov": "web-test-runner \"test/**/*.web.spec.js\" --node-resolve --root-dir=. --coverage",
"profile": "node --inspect-brk test/inspect.mjs",
"debug": "web-test-runner \"test/**/*.web.spec.js\" --manual --open --node-resolve --root-dir=."
},
Expand Down Expand Up @@ -43,7 +44,6 @@
"homepage": "https://github.com/tbela99/css-parser#readme",
"devDependencies": {
"@esm-bundle/chai": "^4.3.4-fix.0",
"@happy-dom/global-registrator": "^12.8.0",
"@rollup/plugin-commonjs": "^25.0.4",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/renderer/sourcemap/sourcemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class SourceMap {

toUrl() {

// /*# sourceMappingURL=${url} */
// sourceMappingURL = ${url}
return `data:application/json,${encodeURIComponent(JSON.stringify(this.toJSON()))}`;
}

Expand Down

0 comments on commit 49da0d7

Please sign in to comment.