@celljs/cache 4.5.1 → 4.6.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.
@@ -1,7 +1,20 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  const bun_test_1 = require("bun:test");
4
- (0, bun_test_1.describe)('cache package', () => {
5
- (0, bun_test_1.it)('support code coverage statistics', () => { });
7
+ const core_1 = require("@celljs/core");
8
+ const assembly_test_util_1 = require("@celljs/core/lib/common/test/assembly-test-util");
9
+ const static_module_1 = __importDefault(require("@celljs/core/lib/common/static-module"));
10
+ const static_module_2 = __importDefault(require("@celljs/core/lib/node/static-module"));
11
+ const module_1 = __importDefault(require("./node/module"));
12
+ core_1.currentThis.cellProps = {};
13
+ (0, bun_test_1.describe)('@celljs/cache', () => {
14
+ (0, bun_test_1.it)('its DI module loads after those of its dependencies and every binding resolves', () => {
15
+ const { changed, errors } = assembly_test_util_1.AssemblyTestUtil.check([static_module_1.default, static_module_2.default], module_1.default);
16
+ (0, bun_test_1.expect)(errors).toEqual([]);
17
+ (0, bun_test_1.expect)(changed).toBeGreaterThan(0);
18
+ });
6
19
  });
7
20
  //# sourceMappingURL=package.spec.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"package.spec.js","sourceRoot":"","sources":["../src/package.spec.ts"],"names":[],"mappings":";;AAAA,uCAAwC;AACxC,IAAA,mBAAQ,EAAC,eAAe,EAAE,GAAG,EAAE;IAE3B,IAAA,aAAE,EAAC,kCAAkC,EAAE,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;AACrD,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"package.spec.js","sourceRoot":"","sources":["../src/package.spec.ts"],"names":[],"mappings":";;;;;AAAA,uCAAgD;AAChD,uCAA2C;AAC3C,wFAAmF;AACnF,0FAAuD;AACvD,wFAAqD;AACrD,2DAAiC;AAEjC,kBAAW,CAAC,SAAS,GAAG,EAAE,CAAC;AAE3B,IAAA,mBAAQ,EAAC,eAAe,EAAE,GAAG,EAAE;IAC3B,IAAA,aAAE,EAAC,gFAAgF,EAAE,GAAG,EAAE;QACtF,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,qCAAgB,CAAC,KAAK,CAAC,CAAC,uBAAE,EAAE,uBAAE,CAAC,EAAE,gBAAI,CAAC,CAAC;QACnE,IAAA,iBAAM,EAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAC3B,IAAA,iBAAM,EAAC,OAAO,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/cache",
3
- "version": "4.5.1",
3
+ "version": "4.6.0",
4
4
  "description": "cache component for cache-manager",
5
5
  "keywords": [
6
6
  "cell-component"
@@ -33,7 +33,7 @@
33
33
  "watch": "tsc -b -w --preserveWatchOutput"
34
34
  },
35
35
  "dependencies": {
36
- "@celljs/core": "4.5.1",
36
+ "@celljs/core": "4.6.0",
37
37
  "cache-manager": "^5.2.3"
38
38
  },
39
39
  "devDependencies": {
@@ -1,5 +1,16 @@
1
- import { describe, it } from 'bun:test';
2
- describe('cache package', () => {
1
+ import { describe, expect, it } from 'bun:test';
2
+ import { currentThis } from '@celljs/core';
3
+ import { AssemblyTestUtil } from '@celljs/core/lib/common/test/assembly-test-util';
4
+ import m0 from '@celljs/core/lib/common/static-module';
5
+ import m1 from '@celljs/core/lib/node/static-module';
6
+ import own0 from './node/module';
3
7
 
4
- it('support code coverage statistics', () => {});
8
+ currentThis.cellProps = {};
9
+
10
+ describe('@celljs/cache', () => {
11
+ it('its DI module loads after those of its dependencies and every binding resolves', () => {
12
+ const { changed, errors } = AssemblyTestUtil.check([m0, m1], own0);
13
+ expect(errors).toEqual([]);
14
+ expect(changed).toBeGreaterThan(0);
15
+ });
5
16
  });