quidproquo-testing 0.1.0 → 0.1.2

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.
@@ -10,7 +10,7 @@ if (typeof globalThis !== 'undefined' && globalThis.expect) {
10
10
  pass: false,
11
11
  message: () => `Expected generator to yield a value, but it completed`,
12
12
  actual: { done: true, value },
13
- expected
13
+ expected,
14
14
  };
15
15
  }
16
16
  const pass = this.equals(value, expected);
@@ -20,7 +20,7 @@ if (typeof globalThis !== 'undefined' && globalThis.expect) {
20
20
  ? `Expected generator not to yield ${this.utils.printExpected(expected)}`
21
21
  : `Expected generator to yield ${this.utils.printExpected(expected)}, but yielded ${this.utils.printReceived(value)}`,
22
22
  actual: value,
23
- expected
23
+ expected,
24
24
  };
25
25
  },
26
26
  toCompleteWith(received, expected) {
@@ -30,7 +30,7 @@ if (typeof globalThis !== 'undefined' && globalThis.expect) {
30
30
  pass: false,
31
31
  message: () => `Expected generator to complete, but it yielded ${this.utils.printReceived(value)}`,
32
32
  actual: { done: false, value },
33
- expected: { done: true, value: expected }
33
+ expected: { done: true, value: expected },
34
34
  };
35
35
  }
36
36
  const pass = value === expected;
@@ -40,7 +40,7 @@ if (typeof globalThis !== 'undefined' && globalThis.expect) {
40
40
  ? `Expected generator not to return ${this.utils.printExpected(expected)}`
41
41
  : `Expected generator to return ${this.utils.printExpected(expected)}, but returned ${this.utils.printReceived(value)}`,
42
42
  actual: value,
43
- expected
43
+ expected,
44
44
  };
45
45
  },
46
46
  toYieldSequence(received, sequence) {
@@ -56,7 +56,7 @@ if (typeof globalThis !== 'undefined' && globalThis.expect) {
56
56
  pass: false,
57
57
  message: () => `Expected generator to yield at step ${currentStep}, but it completed`,
58
58
  actual: results,
59
- expected: sequence
59
+ expected: sequence,
60
60
  };
61
61
  }
62
62
  if (!this.equals(value, step.yields)) {
@@ -65,7 +65,7 @@ if (typeof globalThis !== 'undefined' && globalThis.expect) {
65
65
  message: () => `At step ${currentStep}: expected to yield ${this.utils.printExpected(step.yields)}, ` +
66
66
  `but yielded ${this.utils.printReceived(value)}`,
67
67
  actual: value,
68
- expected: step.yields
68
+ expected: step.yields,
69
69
  };
70
70
  }
71
71
  }
@@ -81,7 +81,7 @@ if (typeof globalThis !== 'undefined' && globalThis.expect) {
81
81
  pass: false,
82
82
  message: () => `Expected generator to complete at step ${currentStep}, but it yielded`,
83
83
  actual: results,
84
- expected: sequence
84
+ expected: sequence,
85
85
  };
86
86
  }
87
87
  if (!this.equals(value, step.returns)) {
@@ -90,7 +90,7 @@ if (typeof globalThis !== 'undefined' && globalThis.expect) {
90
90
  message: () => `At step ${currentStep}: expected to return ${this.utils.printExpected(step.returns)}, ` +
91
91
  `but returned ${this.utils.printReceived(value)}`,
92
92
  actual: value,
93
- expected: step.returns
93
+ expected: step.returns,
94
94
  };
95
95
  }
96
96
  }
@@ -100,8 +100,8 @@ if (typeof globalThis !== 'undefined' && globalThis.expect) {
100
100
  pass: true,
101
101
  message: () => `Expected generator not to match sequence`,
102
102
  actual: results,
103
- expected: sequence
103
+ expected: sequence,
104
104
  };
105
- }
105
+ },
106
106
  });
107
107
  }
@@ -10,7 +10,7 @@ if (typeof globalThis !== 'undefined' && globalThis.expect) {
10
10
  pass: false,
11
11
  message: () => `Expected generator to yield a value, but it completed`,
12
12
  actual: { done: true, value },
13
- expected
13
+ expected,
14
14
  };
15
15
  }
16
16
  const pass = this.equals(value, expected);
@@ -20,7 +20,7 @@ if (typeof globalThis !== 'undefined' && globalThis.expect) {
20
20
  ? `Expected generator not to yield ${this.utils.printExpected(expected)}`
21
21
  : `Expected generator to yield ${this.utils.printExpected(expected)}, but yielded ${this.utils.printReceived(value)}`,
22
22
  actual: value,
23
- expected
23
+ expected,
24
24
  };
25
25
  },
26
26
  toCompleteWith(received, expected) {
@@ -30,7 +30,7 @@ if (typeof globalThis !== 'undefined' && globalThis.expect) {
30
30
  pass: false,
31
31
  message: () => `Expected generator to complete, but it yielded ${this.utils.printReceived(value)}`,
32
32
  actual: { done: false, value },
33
- expected: { done: true, value: expected }
33
+ expected: { done: true, value: expected },
34
34
  };
35
35
  }
36
36
  const pass = value === expected;
@@ -40,7 +40,7 @@ if (typeof globalThis !== 'undefined' && globalThis.expect) {
40
40
  ? `Expected generator not to return ${this.utils.printExpected(expected)}`
41
41
  : `Expected generator to return ${this.utils.printExpected(expected)}, but returned ${this.utils.printReceived(value)}`,
42
42
  actual: value,
43
- expected
43
+ expected,
44
44
  };
45
45
  },
46
46
  toYieldSequence(received, sequence) {
@@ -55,7 +55,7 @@ if (typeof globalThis !== 'undefined' && globalThis.expect) {
55
55
  pass: false,
56
56
  message: () => `Expected generator to yield at step ${currentStep}, but it completed`,
57
57
  actual: results,
58
- expected: sequence
58
+ expected: sequence,
59
59
  };
60
60
  }
61
61
  if (!this.equals(value, step.yields)) {
@@ -64,7 +64,7 @@ if (typeof globalThis !== 'undefined' && globalThis.expect) {
64
64
  message: () => `At step ${currentStep}: expected to yield ${this.utils.printExpected(step.yields)}, ` +
65
65
  `but yielded ${this.utils.printReceived(value)}`,
66
66
  actual: value,
67
- expected: step.yields
67
+ expected: step.yields,
68
68
  };
69
69
  }
70
70
  }
@@ -80,7 +80,7 @@ if (typeof globalThis !== 'undefined' && globalThis.expect) {
80
80
  pass: false,
81
81
  message: () => `Expected generator to complete at step ${currentStep}, but it yielded`,
82
82
  actual: results,
83
- expected: sequence
83
+ expected: sequence,
84
84
  };
85
85
  }
86
86
  if (!this.equals(value, step.returns)) {
@@ -89,7 +89,7 @@ if (typeof globalThis !== 'undefined' && globalThis.expect) {
89
89
  message: () => `At step ${currentStep}: expected to return ${this.utils.printExpected(step.returns)}, ` +
90
90
  `but returned ${this.utils.printReceived(value)}`,
91
91
  actual: value,
92
- expected: step.returns
92
+ expected: step.returns,
93
93
  };
94
94
  }
95
95
  }
@@ -99,8 +99,8 @@ if (typeof globalThis !== 'undefined' && globalThis.expect) {
99
99
  pass: true,
100
100
  message: () => `Expected generator not to match sequence`,
101
101
  actual: results,
102
- expected: sequence
102
+ expected: sequence,
103
103
  };
104
- }
104
+ },
105
105
  });
106
106
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quidproquo-testing",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "",
5
5
  "main": "./lib/commonjs/index.js",
6
6
  "module": "./lib/esm/index.js",
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "homepage": "https://github.com/joe-coady/quidproquo#readme",
46
46
  "devDependencies": {
47
- "quidproquo-tsconfig": "0.1.0",
47
+ "quidproquo-tsconfig": "0.1.2",
48
48
  "typescript": "^5.8.2",
49
49
  "vitest": "^3.2.4"
50
50
  },