@usagekit/store 0.8.0 → 0.9.1

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.
@@ -150,7 +150,10 @@ export function admissionTests(factory) {
150
150
  outcome: "exceeded",
151
151
  exceeded: { budget: { id: b.id }, boundary: "hardLimit", reserved: quantity(2n) },
152
152
  });
153
- expect(await f.store.reserve({ ...candidate(), estimate: [quantity(0n)] })).toMatchObject({
153
+ expect(await f.store.reserve({
154
+ ...candidate(),
155
+ estimate: [quantity(0n), quantity(1n, "customer_cents")],
156
+ })).toMatchObject({
154
157
  outcome: "reserved",
155
158
  warnings: [{ boundary: "limit" }],
156
159
  });
@@ -12,7 +12,10 @@ export const input = (overrides = {}) => ({
12
12
  source: "app",
13
13
  provider: "search",
14
14
  operation: "search",
15
- estimate: [quantity()],
15
+ estimate: [
16
+ quantity(),
17
+ ...(overrides.fundingSource === "platform" ? [quantity(1n, "customer_cents")] : []),
18
+ ],
16
19
  ...overrides,
17
20
  });
18
21
  export const ref = (op) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usagekit/store",
3
- "version": "0.8.0",
3
+ "version": "0.9.1",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Atomic store commands, reference store and conformance tests.",
@@ -31,7 +31,7 @@
31
31
  "prepack": "node ../../scripts/package-license.mjs"
32
32
  },
33
33
  "dependencies": {
34
- "@usagekit/core": "0.8.0"
34
+ "@usagekit/core": "0.9.1"
35
35
  },
36
36
  "sideEffects": false,
37
37
  "publishConfig": {