Skip to content

Commit

Permalink
feat(jasmine): replace deprecated jasmine-matchers with add-matchers
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveVanOpstal committed Jul 11, 2017
1 parent 3f96f56 commit b864b9e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions config/jasmine-matchers.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var jasmineMatchers = require('jasmine-matchers-loader');
var addMatchers = require('add-matchers');

jasmineMatchers.add({
addMatchers({
toHaveEqualContent: function(key, actual) {
return JSON.stringify(key) === JSON.stringify(actual);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
"devDependencies": {
"@types/jasmine": "^2.5.53",
"@types/webpack": "^3.0.1",
"add-matchers": "^0.5.0",
"awesome-typescript-loader": "^3.2.1",
"clang-format": "^1.0.53",
"clean-webpack-plugin": "^0.1.16",
Expand All @@ -156,7 +157,6 @@
"html-webpack-plugin": "^2.29.0",
"istanbul-instrumenter-loader": "0.2.0",
"jasmine-core": "^2.6.4",
"jasmine-matchers-loader": "^0.1.0",
"json-loader": "^0.5.4",
"karma": "^1.7.0",
"karma-coverage": "^1.1.1",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,10 @@ acorn@^5.0.0:
version "5.1.1"
resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.1.1.tgz#53fe161111f912ab999ee887a90a0bc52822fd75"

add-matchers@^0.5.0:
version "0.5.0"
resolved "https://registry.yarnpkg.com/add-matchers/-/add-matchers-0.5.0.tgz#502190e4750cd5721618393268b61a157366e765"

adm-zip@0.4.4:
version "0.4.4"
resolved "https://registry.yarnpkg.com/adm-zip/-/adm-zip-0.4.4.tgz#a61ed5ae6905c3aea58b3a657d25033091052736"
Expand Down Expand Up @@ -3051,10 +3055,6 @@ jasmine-core@^2.6.4, jasmine-core@~2.6.0:
version "2.6.4"
resolved "https://registry.yarnpkg.com/jasmine-core/-/jasmine-core-2.6.4.tgz#dec926cd0a9fa287fb6db5c755fa487e74cecac5"

jasmine-matchers-loader@^0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/jasmine-matchers-loader/-/jasmine-matchers-loader-0.1.0.tgz#dda23db8a3ff99ec3b635be085d875d52f0f0050"

jasmine@^2.5.3:
version "2.6.0"
resolved "https://registry.yarnpkg.com/jasmine/-/jasmine-2.6.0.tgz#6b22e70883e8e589d456346153b4d206ddbe217f"
Expand Down

0 comments on commit b864b9e

Please sign in to comment.