Skip to content

Commit

Permalink
Editor.save is async
Browse files Browse the repository at this point in the history
  • Loading branch information
noseglid committed Oct 2, 2017
1 parent 4885b55 commit b8e0aae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/build-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,9 @@ describe('Build', () => {

waitsForPromise(() => atom.workspace.open('dummy'));

runs(() => {
waitsForPromise(() => {
const editor = atom.workspace.getActiveTextEditor();
editor.save();
return editor.save();
});

waitsFor(() => {
Expand All @@ -423,9 +423,9 @@ describe('Build', () => {

waitsForPromise(() => atom.workspace.open('dummy'));

runs(() => {
waitsForPromise(() => {
const editor = atom.workspace.getActiveTextEditor();
editor.save();
return editor.save();
});

runs(() => {
Expand Down

0 comments on commit b8e0aae

Please sign in to comment.