Skip to content

Commit 9aa8735

Browse files
authored
Apply suggestions from code review
Signed-off-by: Manuel <[email protected]>
1 parent 7890722 commit 9aa8735

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/index.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -668,26 +668,26 @@ describe('server', () => {
668668
await reconfigureServer({
669669
publicServerURL: () => {
670670
counter++;
671-
return `https://server-${counter}.com/1`;
671+
return `https://example.com/${counter}`;
672672
},
673673
});
674674

675675
// First request - should call the function
676676
await new Parse.Object('TestObject').save();
677677
const config1 = Config.get(Parse.applicationId);
678-
expect(config1.publicServerURL).toEqual('https://server-1.com/1');
678+
expect(config1.publicServerURL).toEqual('https://example.com/1');
679679
expect(counter).toEqual(1);
680680

681681
// Second request - should call the function again
682682
await new Parse.Object('TestObject').save();
683683
const config2 = Config.get(Parse.applicationId);
684-
expect(config2.publicServerURL).toEqual('https://server-2.com/1');
684+
expect(config2.publicServerURL).toEqual('https://example.com/2');
685685
expect(counter).toEqual(2);
686686

687687
// Third request - should call the function again
688688
await new Parse.Object('TestObject').save();
689689
const config3 = Config.get(Parse.applicationId);
690-
expect(config3.publicServerURL).toEqual('https://server-3.com/1');
690+
expect(config3.publicServerURL).toEqual('https://example.com/3');
691691
expect(counter).toEqual(3);
692692
});
693693

0 commit comments

Comments
 (0)