Skip to content

Commit d5ee047

Browse files
committed
Add test fixes
1 parent 290d71d commit d5ee047

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

packages/realm-server/tests/realm-endpoints-test.ts

+9-12
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,11 @@ module(basename(__filename), function () {
732732
module: `./person`,
733733
name: 'Person',
734734
},
735-
realmInfo: testRealmInfo,
735+
// FIXME see elsewhere… global fix?
736+
realmInfo: {
737+
...testRealmInfo,
738+
realmUserId: '@node-test_realm:localhost',
739+
},
736740
realmURL: testRealmURL.href,
737741
},
738742
links: {
@@ -1225,8 +1229,6 @@ module(basename(__filename), function () {
12251229
assert.deepEqual(incrementalIndexInitiationEvent!.content, {
12261230
eventName: 'index',
12271231
indexType: 'incremental-index-initiation',
1228-
// FIXME realmURL should not be here…??
1229-
realmURL: 'http://127.0.0.1:4444/',
12301232
updatedFile: `${testRealmURL}person-1.json`,
12311233
});
12321234

@@ -1358,8 +1360,6 @@ module(basename(__filename), function () {
13581360
assert.deepEqual(incrementalIndexInitiationEvent!.content, {
13591361
eventName: 'index',
13601362
indexType: 'incremental-index-initiation',
1361-
// FIXME realmURL should not be here…??
1362-
realmURL: 'http://127.0.0.1:4444/',
13631363
updatedFile: `${testRealmURL}person-1.json`,
13641364
});
13651365

@@ -1648,8 +1648,6 @@ module(basename(__filename), function () {
16481648
assert.deepEqual(incrementalIndexInitiationEvent!.content, {
16491649
eventName: 'index',
16501650
indexType: 'incremental-index-initiation',
1651-
// FIXME realmURL should not be here…??
1652-
realmURL: 'http://127.0.0.1:4444/',
16531651
updatedFile: `${testRealmURL}unused-card.gts`,
16541652
});
16551653

@@ -1782,8 +1780,6 @@ module(basename(__filename), function () {
17821780
assert.deepEqual(incrementalIndexInitiationEvent!.content, {
17831781
eventName: 'index',
17841782
indexType: 'incremental-index-initiation',
1785-
// FIXME why
1786-
realmURL: testRealmURL.href,
17871783
updatedFile: `${testRealmURL}unused-card.gts`,
17881784
});
17891785

@@ -2004,7 +2000,6 @@ module(basename(__filename), function () {
20042000
content: {
20052001
eventName: 'index',
20062002
indexType: 'incremental-index-initiation',
2007-
realmURL: testRealmURL.href,
20082003
updatedFile: `${testRealmURL}test-card.gts`,
20092004
},
20102005
},
@@ -2044,7 +2039,6 @@ module(basename(__filename), function () {
20442039
content: {
20452040
eventName: 'index',
20462041
indexType: 'incremental-index-initiation',
2047-
realmURL: testRealmURL.href,
20482042
updatedFile: `${id}.json`,
20492043
},
20502044
},
@@ -2834,7 +2828,10 @@ module(basename(__filename), function () {
28342828
data: {
28352829
id: testRealmHref,
28362830
type: 'realm-info',
2837-
attributes: testRealmInfo,
2831+
attributes: {
2832+
...testRealmInfo,
2833+
realmUserId: '@node-test_realm:localhost',
2834+
},
28382835
},
28392836
},
28402837
'/_info response is correct',

0 commit comments

Comments
 (0)