Skip to content

Commit ee44406

Browse files
committed
Added some SettingsManager tests
1 parent d0fa598 commit ee44406

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Configuration } from './Configuration';
2+
import { EventPluginContext } from '../plugins/EventPluginContext';
3+
import { SettingsManager } from './SettingsManager';
4+
5+
describe('SettingsManager', () => {
6+
it('should call changed handler', (done) => {
7+
SettingsManager.onChanged((configuration:Configuration) => {
8+
expect(configuration.settings).toBeDefined();
9+
done();
10+
});
11+
12+
var config = new Configuration('LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw');
13+
SettingsManager.applySavedServerSettings(config);
14+
}, 250);
15+
});

0 commit comments

Comments
 (0)