mirror of
https://github.com/OutlineFoundation/outline-server.git
synced 2026-05-13 13:58:57 +00:00
Use toBeTrue() or toBeFalse() when testing a boolean result.
This commit is contained in:
parent
cbd33c0e9b
commit
7c5c587fc3
1 changed files with 6 additions and 6 deletions
|
|
@ -60,21 +60,21 @@ describe('OutlineSharedMetricsPublisher', () => {
|
|||
|
||||
describe('Enable/Disable', () => {
|
||||
it('Mirrors config', () => {
|
||||
expect(publisher.isSharingEnabled()).toBeFalsy();
|
||||
expect(publisher.isSharingEnabled()).toBeFalse();
|
||||
|
||||
publisher.startSharing();
|
||||
expect(publisher.isSharingEnabled()).toBeTruthy();
|
||||
expect(serverConfig.mostRecentWrite.metricsEnabled).toBeTruthy();
|
||||
expect(publisher.isSharingEnabled()).toBeTrue();
|
||||
expect(serverConfig.mostRecentWrite.metricsEnabled).toBeTrue();
|
||||
|
||||
publisher.stopSharing();
|
||||
expect(publisher.isSharingEnabled()).toBeFalsy();
|
||||
expect(serverConfig.mostRecentWrite.metricsEnabled).toBeFalsy();
|
||||
expect(publisher.isSharingEnabled()).toBeFalse();
|
||||
expect(serverConfig.mostRecentWrite.metricsEnabled).toBeFalse();
|
||||
});
|
||||
|
||||
it('Reads from config', () => {
|
||||
serverConfig.data().metricsEnabled = true;
|
||||
|
||||
expect(publisher.isSharingEnabled()).toBeTruthy();
|
||||
expect(publisher.isSharingEnabled()).toBeTrue();
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue