Skip to content

Commit

Permalink
💚 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejpurves committed Nov 21, 2023
1 parent cc01e32 commit 50b8123
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
14 changes: 8 additions & 6 deletions packages/core/tests/config.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ describe('config', () => {
});
});
test('server settings', () => {
expect(config.serverSettings).toEqual({
baseUrl: 'http://localhost:8888',
token: 'test-secret',
appendToken: true,
wsUrl: 'ws://localhost:8888',
});
expect(config.serverSettings).toEqual(
expect.objectContaining({
baseUrl: 'http://localhost:8888',
token: expect.any(String),
appendToken: true,
wsUrl: 'ws://localhost:8888',
}),
);
});
});
});
14 changes: 8 additions & 6 deletions packages/core/tests/options.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,14 @@ describe('options', () => {
});
describe('server settings', () => {
test('defaults', () => {
expect(makeServerSettings({})).toEqual({
baseUrl: 'http://localhost:8888',
token: 'test-secret',
appendToken: true,
wsUrl: 'ws://localhost:8888',
});
expect(makeServerSettings({})).toEqual(
expect.objectContaining({
baseUrl: 'http://localhost:8888',
token: expect.any(String),
appendToken: true,
wsUrl: 'ws://localhost:8888',
}),
);
});
test('overrides', () => {
expect(
Expand Down

0 comments on commit 50b8123

Please sign in to comment.