|
1 | | -// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing |
2 | | - |
3 | | -exports[`nodejs functions concurrently (7) 1`] = ` |
4 | | -[ |
5 | | - { |
6 | | - "annotations": { |
7 | | - "custom": { |
8 | | - "failure_msg": "Task '%s' does not contain a bundle reference", |
9 | | - "short_name": "disallowed_task_reference", |
10 | | - }, |
11 | | - "description": "Check for existence of a task bundle. Enforcing this rule will |
12 | | -fail the contract if the task is not called from a bundle.", |
13 | | - "scope": "rule", |
14 | | - "title": "Task bundle was not used or is not defined", |
15 | | - }, |
16 | | - "location": { |
17 | | - "col": 1, |
18 | | - "file": "example.rego", |
19 | | - "row": 12, |
20 | | - }, |
21 | | - "path": [ |
22 | | - { |
23 | | - "type": "var", |
24 | | - "value": "data", |
25 | | - }, |
26 | | - { |
27 | | - "type": "string", |
28 | | - "value": "example", |
29 | | - }, |
30 | | - { |
31 | | - "type": "string", |
32 | | - "value": "deny", |
33 | | - }, |
34 | | - ], |
35 | | - }, |
36 | | -] |
37 | | -`; |
38 | | - |
39 | | -exports[`nodejs functions concurrently (12) 1`] = ` |
40 | | -[ |
41 | | - { |
42 | | - "annotations": { |
43 | | - "custom": { |
44 | | - "failure_msg": "Task '%s' does not contain a bundle reference", |
45 | | - "short_name": "disallowed_task_reference", |
46 | | - }, |
47 | | - "description": "Check for existence of a task bundle. Enforcing this rule will |
48 | | -fail the contract if the task is not called from a bundle.", |
49 | | - "scope": "rule", |
50 | | - "title": "Task bundle was not used or is not defined", |
51 | | - }, |
52 | | - "location": { |
53 | | - "col": 1, |
54 | | - "file": "example.rego", |
55 | | - "row": 12, |
56 | | - }, |
57 | | - "path": [ |
58 | | - { |
59 | | - "type": "var", |
60 | | - "value": "data", |
61 | | - }, |
62 | | - { |
63 | | - "type": "string", |
64 | | - "value": "example", |
65 | | - }, |
66 | | - { |
67 | | - "type": "string", |
68 | | - "value": "deny", |
69 | | - }, |
70 | | - ], |
71 | | - }, |
72 | | -] |
73 | | -`; |
74 | | - |
75 | | -exports[`nodejs functions concurrently (24) 1`] = ` |
76 | | -{ |
77 | | - "annotations": { |
78 | | - "custom": { |
79 | | - "failure_msg": "Task '%s' does not contain a bundle reference", |
80 | | - "short_name": "disallowed_task_reference", |
81 | | - }, |
82 | | - "description": "Check for existence of a task bundle. Enforcing this rule will |
83 | | -fail the contract if the task is not called from a bundle.", |
84 | | - "scope": "rule", |
85 | | - "title": "Task bundle was not used or is not defined", |
86 | | - }, |
87 | | - "location": { |
88 | | - "col": 1, |
89 | | - "file": StringMatching /\\\\/example\\\\\\.rego\\$/, |
90 | | - "row": 12, |
91 | | - }, |
92 | | - "path": [ |
93 | | - { |
94 | | - "type": "var", |
95 | | - "value": "data", |
96 | | - }, |
97 | | - { |
98 | | - "type": "string", |
99 | | - "value": "example", |
100 | | - }, |
101 | | - { |
102 | | - "type": "string", |
103 | | - "value": "deny", |
104 | | - }, |
105 | | - ], |
106 | | -} |
107 | | -`; |
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
108 | 2 |
|
109 | 3 | exports[`nodejs inspects multiple rego files 1`] = ` |
110 | 4 | { |
|
0 commit comments