Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Wait for save to complete in tests #222

Merged
merged 1 commit into from
May 23, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions spec/symbols-view-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe('SymbolsView', () => {
expect(symbolsView.generateTags).not.toHaveBeenCalled();
await symbolsView.cancel();

editor.save();
await editor.save();
atom.commands.dispatch(getEditorView(), 'symbols-view:toggle-file-symbols');
await conditionPromise(() => symbolsView.element.querySelectorAll('li').length > 0);
expect(symbolsView.selectListView.refs.loadingMessage).toBeUndefined();
Expand Down Expand Up @@ -397,7 +397,7 @@ describe('SymbolsView', () => {
await atom.packages.activatePackage('language-javascript');
await atom.workspace.open('sample.javascript');
atom.workspace.getActiveTextEditor().setText('var test = function() {}');
atom.workspace.getActiveTextEditor().save();
await atom.workspace.getActiveTextEditor().save();
atom.commands.dispatch(getEditorView(), 'symbols-view:toggle-file-symbols');
await activationPromise;

Expand Down