@luvio/adapter-test-library 0.53.0 → 0.55.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.
@@ -8,6 +8,9 @@ export declare function getMockLuvioWithFulfilledSnapshot(): {
8
8
  state: string;
9
9
  };
10
10
  };
11
+ applyCachePolicy(): {
12
+ state: string;
13
+ };
11
14
  };
12
15
  export declare function getMockFulfilledSnapshot(): {
13
16
  state: string;
@@ -266,6 +266,9 @@ const mockLuvio = {
266
266
  dispatchResourceRequest() {
267
267
  return mockFulfilledSnapshotPromise;
268
268
  },
269
+ applyCachePolicy() {
270
+ return mockFulfilledSnapshot;
271
+ },
269
272
  };
270
273
  function getMockLuvioWithFulfilledSnapshot() {
271
274
  return mockLuvio;
@@ -8,6 +8,9 @@ export declare function getMockLuvioWithFulfilledSnapshot(): {
8
8
  state: string;
9
9
  };
10
10
  };
11
+ applyCachePolicy(): {
12
+ state: string;
13
+ };
11
14
  };
12
15
  export declare function getMockFulfilledSnapshot(): {
13
16
  state: string;
@@ -270,6 +270,9 @@
270
270
  dispatchResourceRequest() {
271
271
  return mockFulfilledSnapshotPromise;
272
272
  },
273
+ applyCachePolicy() {
274
+ return mockFulfilledSnapshot;
275
+ },
273
276
  };
274
277
  function getMockLuvioWithFulfilledSnapshot() {
275
278
  return mockLuvio;
@@ -8,6 +8,9 @@ export declare function getMockLuvioWithFulfilledSnapshot(): {
8
8
  state: string;
9
9
  };
10
10
  };
11
+ applyCachePolicy(): {
12
+ state: string;
13
+ };
11
14
  };
12
15
  export declare function getMockFulfilledSnapshot(): {
13
16
  state: string;
@@ -275,6 +275,9 @@
275
275
  dispatchResourceRequest: function () {
276
276
  return mockFulfilledSnapshotPromise;
277
277
  },
278
+ applyCachePolicy: function () {
279
+ return mockFulfilledSnapshot;
280
+ },
278
281
  };
279
282
  function getMockLuvioWithFulfilledSnapshot() {
280
283
  return mockLuvio;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luvio/adapter-test-library",
3
- "version": "0.53.0",
3
+ "version": "0.55.1",
4
4
  "description": "Test library for luvio adapters",
5
5
  "main": "dist/umd/es2018/test-library.js",
6
6
  "module": "dist/es/es2018/test-library.js",
@@ -13,8 +13,8 @@
13
13
  "test": "jest"
14
14
  },
15
15
  "devDependencies": {
16
- "@luvio/engine": "0.53.0",
17
- "@luvio/environments": "0.53.0",
16
+ "@luvio/engine": "0.55.1",
17
+ "@luvio/environments": "0.55.1",
18
18
  "@types/sinon": "^7.5.2"
19
19
  },
20
20
  "dependencies": {
package/src/mocks.ts CHANGED
@@ -16,6 +16,10 @@ const mockLuvio = {
16
16
  dispatchResourceRequest() {
17
17
  return mockFulfilledSnapshotPromise;
18
18
  },
19
+
20
+ applyCachePolicy() {
21
+ return mockFulfilledSnapshot;
22
+ },
19
23
  };
20
24
 
21
25
  export function getMockLuvioWithFulfilledSnapshot() {