mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 19:17:09 +03:00
Revert Commit 51a1f75998
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:
parent
71845c7559
commit
e80ab284c8
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user