Skip to content

Commit 1fb15fb

Browse files
committed
Add new test for replacing properties + some clean-up work
1 parent 05ce19c commit 1fb15fb

11 files changed

Lines changed: 65 additions & 34 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ This is the key → value object that provides the data for the plugin for repla
6565

6666
- If the key `replaceAll` is provided all matched strings will be replaced by the given value
6767
e.g:
68-
`data: { replaceAll: 'replace all matched with this text' }`
68+
`data: { replaceAll: 'replace all matched strings with this text' }`
6969

7070
## Testing
7171

package-lock.json

Lines changed: 19 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
"coveralls": "^3.0.3",
3333
"jest": "^26.2.1",
3434
"jest-cli": "^26.0.1",
35-
"@stryker-mutator/core": "^3.1.0",
36-
"@stryker-mutator/javascript-mutator": "^4.0.0",
37-
"@stryker-mutator/jest-runner": "^3.1.0"
35+
"@stryker-mutator/core": "^3.1.1",
36+
"@stryker-mutator/javascript-mutator": "^3.3.1",
37+
"@stryker-mutator/jest-runner": "^3.3.1"
3838
},
3939
"repository": {
4040
"type": "git",

stryker.conf.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
module.exports = function(config) {
2-
config.set({
3-
mutate: [
4-
"index.js"
5-
],
6-
testRunner: "jest",
7-
mutator: "javascript",
8-
transpilers: [],
9-
reporters: ["clear-text", "progress"],
10-
coverageAnalysis: "all"
11-
});
1+
/**
2+
* @type {import('@stryker-mutator/api/core').StrykerOptions}
3+
*/
4+
module.exports = {
5+
mutator: "javascript",
6+
packageManager: "npm",
7+
reporters: ["clear-text", "progress"],
8+
testRunner: "jest",
9+
transpilers: [],
10+
coverageAnalysis: "all",
11+
mutate: ["index.js"],
1212
};
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
.letscheck .example{
1+
.letscheck .example {
22
content: '%replace_ME%';
3-
}
3+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
.letscheck .example{
1+
.letscheck .example {
22
content: 'new awesome string :)';
3-
}
3+
}

test/fixtures/regexEmpty.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
.letscheck [ng_host_1]:delete .example{
1+
.letscheck [ng_host_1]:delete .example {
22
content: 'works';
3-
}
3+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
.letscheck .example{
1+
.letscheck .example {
22
content: 'works';
3-
}
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.u-##(prop)-##(name)-##(key) {
2+
##(prop): ##(value);
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.u-color-basic-dark {
2+
color: #9c9c9c;
3+
}

0 commit comments

Comments
 (0)