@malloydata/malloy-tests 0.0.190 → 0.0.191-dev240925232958
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.
- package/package.json +8 -8
- package/src/api.spec.ts +12 -15
package/package.json
CHANGED
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@jest/globals": "^29.4.3",
|
|
24
|
-
"@malloydata/db-bigquery": "^0.0.
|
|
25
|
-
"@malloydata/db-duckdb": "^0.0.
|
|
26
|
-
"@malloydata/db-postgres": "^0.0.
|
|
27
|
-
"@malloydata/db-snowflake": "^0.0.
|
|
28
|
-
"@malloydata/db-trino": "^0.0.
|
|
29
|
-
"@malloydata/malloy": "^0.0.
|
|
30
|
-
"@malloydata/render": "^0.0.
|
|
24
|
+
"@malloydata/db-bigquery": "^0.0.191-dev240925232958",
|
|
25
|
+
"@malloydata/db-duckdb": "^0.0.191-dev240925232958",
|
|
26
|
+
"@malloydata/db-postgres": "^0.0.191-dev240925232958",
|
|
27
|
+
"@malloydata/db-snowflake": "^0.0.191-dev240925232958",
|
|
28
|
+
"@malloydata/db-trino": "^0.0.191-dev240925232958",
|
|
29
|
+
"@malloydata/malloy": "^0.0.191-dev240925232958",
|
|
30
|
+
"@malloydata/render": "^0.0.191-dev240925232958",
|
|
31
31
|
"jsdom": "^22.1.0",
|
|
32
32
|
"luxon": "^2.4.0",
|
|
33
33
|
"madge": "^6.0.0"
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"@types/jsdom": "^21.1.1",
|
|
37
37
|
"@types/luxon": "^2.4.0"
|
|
38
38
|
},
|
|
39
|
-
"version": "0.0.
|
|
39
|
+
"version": "0.0.191-dev240925232958"
|
|
40
40
|
}
|
package/src/api.spec.ts
CHANGED
|
@@ -108,23 +108,20 @@ describe('extendModel', () => {
|
|
|
108
108
|
});
|
|
109
109
|
|
|
110
110
|
it('does not throw when true', async () => {
|
|
111
|
-
await
|
|
112
|
-
|
|
113
|
-
)
|
|
111
|
+
const model = await runtime.getModel('source: foo is bar', {
|
|
112
|
+
noThrowOnError: true,
|
|
113
|
+
});
|
|
114
|
+
expect(model.problems[0]).toEqual(
|
|
114
115
|
expect.objectContaining({
|
|
115
|
-
'
|
|
116
|
-
{
|
|
117
|
-
'
|
|
118
|
-
|
|
119
|
-
'end': {'character': 18, 'line': 0},
|
|
120
|
-
'start': {'character': 15, 'line': 0},
|
|
121
|
-
},
|
|
122
|
-
'url': 'internal://internal.malloy',
|
|
123
|
-
},
|
|
124
|
-
'message': "Reference to undefined object 'bar'",
|
|
125
|
-
'severity': 'error',
|
|
116
|
+
'at': {
|
|
117
|
+
'range': {
|
|
118
|
+
'end': {'character': 18, 'line': 0},
|
|
119
|
+
'start': {'character': 15, 'line': 0},
|
|
126
120
|
},
|
|
127
|
-
|
|
121
|
+
'url': 'internal://internal.malloy',
|
|
122
|
+
},
|
|
123
|
+
'message': "Reference to undefined object 'bar'",
|
|
124
|
+
'severity': 'error',
|
|
128
125
|
})
|
|
129
126
|
);
|
|
130
127
|
});
|