Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update tests
  • Loading branch information
trekforever committed Apr 5, 2024
commit 3d8d3d4e0adf1de181bc34d489b874d5d93b128a
4 changes: 2 additions & 2 deletions test/unit/remote-config/remote-config.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ describe('RemoteConfig', () => {
const cond = c as NamedCondition;
expect(cond.name).to.equal('ios');

const parsed = JSON.parse(JSON.stringify(template.toJSON()));
const parsed = template.toJSON();
const expectedTemplate = deepCopy(SERVER_REMOTE_CONFIG_RESPONSE);
const expectedVersion = deepCopy(VERSION_INFO);
expectedVersion.updateTime = new Date(expectedVersion.updateTime).toUTCString();
Expand Down Expand Up @@ -866,7 +866,7 @@ describe('RemoteConfig', () => {
}
});

const parsed = JSON.parse(JSON.stringify(template.toJSON()));
const parsed = template.toJSON();
const expectedTemplate = deepCopy(SERVER_REMOTE_CONFIG_RESPONSE);
const expectedVersion = deepCopy(VERSION_INFO);
expectedVersion.updateTime = new Date(expectedVersion.updateTime).toUTCString();
Expand Down