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
@@ -3,7 +3,7 @@
3
3
  "velocious": "bin/velocious.js"
4
4
  },
5
5
  "name": "velocious",
6
- "version": "1.0.27",
6
+ "version": "1.0.28",
7
7
  "main": "index.js",
8
8
  "scripts": {
9
9
  "test": "jasmine",
@@ -213,7 +213,7 @@ export default class VelociousDatabaseQuery {
213
213
  const sql = this.toSql()
214
214
  const results = await this.driver.query(sql)
215
215
 
216
- this.logger.debug(`SQL: sql`)
216
+ this.logger.debug("SQL: ", sql)
217
217
 
218
218
  return results
219
219
  }
@@ -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) {