@tryghost/email-mock-receiver 0.2.3 → 0.3.0

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.
@@ -29,7 +29,12 @@ class EmailMockReceiver {
29
29
  return this.#sendResponse;
30
30
  }
31
31
 
32
- sentEmailCount(count) {
32
+ /**
33
+ *
34
+ * @param {Number} count number of sent emails to expect
35
+ * @returns {EmailMockReceiver} current instance
36
+ */
37
+ assertSentEmailCount(count) {
33
38
  assert.equal(this.#snapshots.length, count, 'Email count does not match');
34
39
 
35
40
  return this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/email-mock-receiver",
3
- "version": "0.2.3",
3
+ "version": "0.3.0",
4
4
  "repository": "https://github.com/TryGhost/framework/tree/main/packages/email-mock-receiver",
5
5
  "author": "Ghost Foundation",
6
6
  "license": "MIT",
@@ -25,5 +25,5 @@
25
25
  "mocha": "10.2.0",
26
26
  "sinon": "15.0.3"
27
27
  },
28
- "gitHead": "2e7899ed169bdfbfa05b0126519e632d000aac6d"
28
+ "gitHead": "8ad6d578e538e8de4a9edbef397febfaf8ae2d92"
29
29
  }