Stub global.atom

The test don't require the atom environment to be setup.
This commit is contained in:
sadick254 2021-08-18 23:27:06 +03:00
parent b2eeaafc3e
commit cdbbcab4a7
No known key found for this signature in database
GPG Key ID: FB51CF448C1FD089

View File

@ -796,6 +796,7 @@ describe('AtomApplication', function() {
app = scenario.getApplication(0);
app.removeWindow(w);
sinon.stub(app, 'promptForPathToOpen');
global.atom = { workspace: { getActiveTextEditor() {} } };
});
it('opens a new file', function() {