@malloydata/malloy-tests 0.0.174 → 0.0.175-dev240821152719
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 +17 -0
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.175-dev240821152719",
|
|
25
|
+
"@malloydata/db-duckdb": "^0.0.175-dev240821152719",
|
|
26
|
+
"@malloydata/db-postgres": "^0.0.175-dev240821152719",
|
|
27
|
+
"@malloydata/db-snowflake": "^0.0.175-dev240821152719",
|
|
28
|
+
"@malloydata/db-trino": "^0.0.175-dev240821152719",
|
|
29
|
+
"@malloydata/malloy": "^0.0.175-dev240821152719",
|
|
30
|
+
"@malloydata/render": "^0.0.175-dev240821152719",
|
|
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.175-dev240821152719"
|
|
40
40
|
}
|
package/src/api.spec.ts
CHANGED
|
@@ -131,4 +131,21 @@ describe('extendModel', () => {
|
|
|
131
131
|
});
|
|
132
132
|
});
|
|
133
133
|
|
|
134
|
+
describe('tags', () => {
|
|
135
|
+
test('view run as query gets tags in explore', async () => {
|
|
136
|
+
const model = runtime.loadModel(`
|
|
137
|
+
source: aircraft is duckdb.table('malloytest.aircraft') extend {
|
|
138
|
+
# bar_chart
|
|
139
|
+
view: by_state is {
|
|
140
|
+
group_by: state
|
|
141
|
+
aggregate: aircraft_count is count()
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
`);
|
|
145
|
+
const query = model.loadQuery('run: aircraft -> by_state');
|
|
146
|
+
const result = await query.run();
|
|
147
|
+
expect(result.resultExplore.tagParse().tag.has('bar_chart')).toBe(true);
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
|
|
134
151
|
afterAll(async () => await runtime.connection.close());
|