@universal-packages/workflows-jest 1.0.2 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
package/index.js CHANGED
@@ -38,6 +38,12 @@ global.workflowsJest = {
38
38
  mockRuns: () => {
39
39
  WORKFLOWS_JEST.mocked = true;
40
40
  class MockedWorkflow extends events_1.default {
41
+ get graph() {
42
+ return {
43
+ name: this.name,
44
+ routines: []
45
+ };
46
+ }
41
47
  constructor(name, options) {
42
48
  super();
43
49
  this.name = name;
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,2CAAsC;AACtC,iEAA4D;AAC5D,6DAAkF;AAClF,oDAAiC;AAEjC,qBAAkB;AAElB,MAAM,cAAc,GAAG;IACrB,MAAM,EAAE,KAAK;IACb,kBAAkB,EAAE,EAAE;CACvB,CAAA;AAED,MAAM,CAAC,aAAa,GAAG;IACrB,GAAG,EAAE,KAAK,EAAE,IAAY,EAAE,OAAQ,EAAqB,EAAE;QACvD,IAAI,OAAO,EAAE,iBAAiB,EAAE;YAC9B,MAAM,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAA;YAErC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,iBAAiB,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBACjD,MAAM,uBAAuB,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAA;gBACpD,MAAM,YAAY,GAAG,uBAAuB,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;gBAC/D,MAAM,aAAa,GAAG,YAAY,CAAC,CAAC,CAAC,CAAA;gBACrC,MAAM,UAAU,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;gBAExC,wBAAU,CAAC,iBAAiB,CAAC;oBAC3B,OAAO,EAAE,aAAa;oBACtB,IAAI,EAAE,UAAU;oBAChB,GAAG,EAAE,uBAAuB,CAAC,GAAG;oBAChC,gBAAgB,EAAE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  "name": "@universal-packages/workflows-jest",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Jest matchers for universal workflows",
5
5
  "author": "David De Anda <david@universal-packages.com> (https://github.com/universal-packages)",
6
6
  "license": "MIT",
@@ -16,7 +16,7 @@
16
16
  "update-dependents": "umaintenance update-dependents"
17
17
  },
18
18
  "peerDependencies": {
19
- "@universal-packages/workflows": "^1.7.0"
19
+ "@universal-packages/workflows": "^1.7.1"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@trivago/prettier-plugin-sort-imports": "^4.2.0",