Skip to content

Commit 1995281

Browse files
committed
Merge branch 'bugfix/prepare-for-11-2-correct-numbers' into issue/2304-slice-operator
2 parents d2742f4 + 27e98c8 commit 1995281

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

integration_tests/create_database.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ describe('Create a database, schema and insert data', () => {
5555
test('Query Person by name', async () => {
5656
const queryTemplate = {"name":"Tom", "@type":"Person" }
5757
const result = await client.getDocument({query:queryTemplate});
58-
expect(result).toStrictEqual({ '@id': 'Child/Tom', '@type': 'Child', age: "10", name: 'Tom' });
58+
expect(result).toStrictEqual({ '@id': 'Child/Tom', '@type': 'Child', age: 10, name: 'Tom' });
5959
})
6060

6161
test('Query Person by ege', async () => {
6262
const queryTemplate = {"age":"40", "@type":"Person" }
6363
const result = await client.getDocument({query:queryTemplate});
64-
expect(result).toStrictEqual({"@id": "Parent/Tom%20Senior", "age":"40","name":"Tom Senior","@type":"Parent" , "has_child":"Child/Tom"});
64+
expect(result).toStrictEqual({"@id": "Parent/Tom%20Senior", "age":40,"name":"Tom Senior","@type":"Parent" , "has_child":"Child/Tom"});
6565
})
6666

6767
const change_request = "change_request02";
@@ -77,7 +77,7 @@ describe('Create a database, schema and insert data', () => {
7777
})
7878

7979
test('Update Child Tom, link Parent', async () => {
80-
const childTom = { '@id': 'Child/Tom', '@type': 'Child', age: "10", name: 'Tom' , has_parent:"Parent/Tom%20Senior"}
80+
const childTom = { '@id': 'Child/Tom', '@type': 'Child', age: 10, name: 'Tom' , has_parent:"Parent/Tom%20Senior"}
8181
const result = await client.updateDocument(childTom);
8282
expect(result).toStrictEqual(["terminusdb:///data/Child/Tom" ]);
8383
})
@@ -113,7 +113,7 @@ describe('Create a database, schema and insert data', () => {
113113
expect(result).toStrictEqual({
114114
'@id': 'Child/Tom',
115115
'@type': 'Child',
116-
age: "10",
116+
age: 10,
117117
name: 'Tom',
118118
has_parent: 'Parent/Tom%20Senior'
119119
});

0 commit comments

Comments
 (0)