@vendure/testing 1.3.0 → 1.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ErrorResultGuard = exports.createErrorResultGuard = void 0;
4
+ const assert_1 = require("assert");
4
5
  /**
5
6
  * @description
6
7
  * Convenience method for creating an {@link ErrorResultGuard}. Takes a predicate function which
@@ -66,7 +67,7 @@ class ErrorResultGuard {
66
67
  */
67
68
  assertSuccess(input) {
68
69
  if (!this.isSuccess(input)) {
69
- fail(`Unexpected error: ${JSON.stringify(input)}`);
70
+ assert_1.fail(`Unexpected error: ${JSON.stringify(input)}`);
70
71
  }
71
72
  }
72
73
  /**
@@ -76,7 +77,7 @@ class ErrorResultGuard {
76
77
  */
77
78
  assertErrorResult(input) {
78
79
  if (this.isSuccess(input)) {
79
- fail(`Should have errored`);
80
+ assert_1.fail(`Should have errored`);
80
81
  }
81
82
  }
82
83
  }
@@ -1 +1 @@
1
- {"version":3,"file":"error-result-guard.js","sourceRoot":"","sources":["../src/error-result-guard.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;;;;;;;GAcG;AACH,SAAgB,sBAAsB,CAAI,MAA6B;IACnE,OAAO,IAAI,gBAAgB,CAAI,MAAM,CAAC,CAAC;AAC3C,CAAC;AAFD,wDAEC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,gBAAgB;IACzB,YAAoB,MAA6B;QAA7B,WAAM,GAAN,MAAM,CAAuB;IAAG,CAAC;IAErD;;;OAGG;IACH,SAAS,CAAC,KAAc;QACpB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAU,CAAC,CAAC;IACnC,CAAC;IAED;;;;OAIG;IACH,aAAa,CAAI,KAAY;QACzB,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE;YACxB,IAAI,CAAC,qBAAqB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;SACtD;IACL,CAAC;IAED;;;;OAIG;IACH,iBAAiB,CAAI,KAAY;QAC7B,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE;YACvB,IAAI,CAAC,qBAAqB,CAAC,CAAC;SAC/B;IACL,CAAC;CACJ;AAhCD,4CAgCC"}
1
+ {"version":3,"file":"error-result-guard.js","sourceRoot":"","sources":["../src/error-result-guard.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAE9B;;;;;;;;;;;;;;GAcG;AACH,SAAgB,sBAAsB,CAAI,MAA6B;IACnE,OAAO,IAAI,gBAAgB,CAAI,MAAM,CAAC,CAAC;AAC3C,CAAC;AAFD,wDAEC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,gBAAgB;IACzB,YAAoB,MAA6B;QAA7B,WAAM,GAAN,MAAM,CAAuB;IAAG,CAAC;IAErD;;;OAGG;IACH,SAAS,CAAC,KAAc;QACpB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAU,CAAC,CAAC;IACnC,CAAC;IAED;;;;OAIG;IACH,aAAa,CAAI,KAAY;QACzB,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE;YACxB,aAAI,CAAC,qBAAqB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;SACtD;IACL,CAAC;IAED;;;;OAIG;IACH,iBAAiB,CAAI,KAAY;QAC7B,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE;YACvB,aAAI,CAAC,qBAAqB,CAAC,CAAC;SAC/B;IACL,CAAC;CACJ;AAhCD,4CAgCC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendure/testing",
3
- "version": "1.3.0",
3
+ "version": "1.3.4",
4
4
  "description": "End-to-end testing tools for Vendure projects",
5
5
  "keywords": [
6
6
  "vendure",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@types/node-fetch": "^2.5.4",
37
- "@vendure/common": "^1.3.0",
37
+ "@vendure/common": "^1.3.4",
38
38
  "faker": "^4.1.0",
39
39
  "form-data": "^3.0.0",
40
40
  "graphql": "15.5.1",
@@ -45,11 +45,11 @@
45
45
  "devDependencies": {
46
46
  "@types/mysql": "^2.15.15",
47
47
  "@types/pg": "^7.14.5",
48
- "@vendure/core": "^1.3.0",
48
+ "@vendure/core": "^1.3.4",
49
49
  "mysql": "^2.18.1",
50
50
  "pg": "^8.4.0",
51
51
  "rimraf": "^3.0.0",
52
52
  "typescript": "4.3.5"
53
53
  },
54
- "gitHead": "ac851bb030d281e3fc31078d2e9d61620eae5b29"
54
+ "gitHead": "c56b85f6d87b5687595ae79c8889bd633101e0d5"
55
55
  }