11 lines
530 B
TypeScript
11 lines
530 B
TypeScript
import { test } from 'node:test';
|
|||
|
|
import assert from 'node:assert/strict';
|
||
|
|
import { shouldShowScreenshareNotice } from './useScreenshareNotices';
|
||
|
|
|
||
|
|
test('shouldShowScreenshareNotice: no "window was closed" when an admin turned sharing off (#297)', () => {
|
||
|
|
assert.equal(shouldShowScreenshareNotice('ended', false), false);
|
||
|
|
assert.equal(shouldShowScreenshareNotice('ended', true), true);
|
||
|
|
assert.equal(shouldShowScreenshareNotice('no-frames', false), true);
|
||
|
|
assert.equal(shouldShowScreenshareNotice('alone', true), true);
|
||
|
|
});
|