mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +03:00
Stub global.atom
The test don't require the atom environment to be setup.
This commit is contained in:
parent
b2eeaafc3e
commit
cdbbcab4a7
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user