This commit was made originally to avoid timing while testing. But as thats now fixed this can be restored to original functionality.
This commit is contained in:
confused-Techie 2022-09-07 16:55:19 -07:00
parent 71845c7559
commit e80ab284c8

View File

@ -589,8 +589,8 @@ describe('Config', () => {
atom.config.get('foo.bar.baz', { scope: ['.source.coffee'] })
).toBe(55);
//advanceClock(150);
atom.config.save();
advanceClock(150);
savedSettings.length = 0;
atom.config.unset('foo.bar.baz', { scopeSelector: '.source.coffee' });
@ -601,8 +601,8 @@ describe('Config', () => {
atom.config.get('foo.bar.ok', { scope: ['.source.coffee'] })
).toBe(20);
//advanceClock(150);
atom.config.save();
advanceClock(150);
expect(savedSettings[0]['.coffee.source']).toEqual({
foo: {
bar: {
@ -613,8 +613,8 @@ describe('Config', () => {
atom.config.unset('foo.bar.ok', { scopeSelector: '.source.coffee' });
//advanceClock(150);
atom.config.save();
advanceClock(150);
expect(savedSettings.length).toBe(2);
expect(savedSettings[1]['.coffee.source']).toBeUndefined();
});
@ -1268,8 +1268,7 @@ describe('Config', () => {
atom.config.set('foo.int', 50, { scopeSelector: '*' });
//advanceClock(100);
atom.config.save();
advanceClock(100);
expect(savedSettings[0]['*'].foo).toEqual({
bar: 'baz',