Skip to content

Commit b0aeb4b

Browse files
committed
fix tests to produce the same results for js and native
1 parent 03a1603 commit b0aeb4b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/cubejs-schema-compiler/test/unit/yaml-schema.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ describe('Yaml Schema Testing', () => {
119119
const { compiler } = prepareYamlCompiler(
120120
`cubes:
121121
- name: Products
122-
sql: select { "string"+123 } from tbl
122+
sql: select { 123abc } from tbl
123123
dimensions:
124124
`
125125
);
@@ -223,7 +223,9 @@ describe('Yaml Schema Testing', () => {
223223

224224
throw new Error('compile must return an error');
225225
} catch (e: any) {
226-
expect(e.message).toContain('Users cube: "title" must be a string');
226+
expect(e.message).toMatch(
227+
/Users cube: "title" (must be a string|is not allowed to be empty)/
228+
);
227229
}
228230
});
229231

0 commit comments

Comments
 (0)