velocious 1.0.27 → 1.0.28
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.
package/package.json
CHANGED
package/src/testing/test.js
CHANGED
|
@@ -34,7 +34,7 @@ class ExpectToChange {
|
|
|
34
34
|
const difference = this.newCount - this.oldCount
|
|
35
35
|
|
|
36
36
|
if (difference != this.count) {
|
|
37
|
-
throw new Error(`Expected to change by ${count} but changed by ${difference}`)
|
|
37
|
+
throw new Error(`Expected to change by ${this.count} but changed by ${difference}`)
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -68,7 +68,7 @@ class Expect {
|
|
|
68
68
|
await expectation.runBefore()
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
await this._object()
|
|
71
|
+
const result = await this._object()
|
|
72
72
|
|
|
73
73
|
for (const expectation of this.expectations) {
|
|
74
74
|
await expectation.runAfter()
|
|
@@ -77,6 +77,8 @@ class Expect {
|
|
|
77
77
|
for (const expectation of this.expectations) {
|
|
78
78
|
await expectation.execute()
|
|
79
79
|
}
|
|
80
|
+
|
|
81
|
+
return result
|
|
80
82
|
}
|
|
81
83
|
|
|
82
84
|
toHaveAttributes(result) {
|