Skip to content

Commit

Permalink
style(generic): fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
malept committed Jan 30, 2017
1 parent f01f990 commit 2f869d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/util/ora-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ class MockOra {
stop() { return this; }
}

const asyncOra = (initalOraValue, asyncFn, processExitFn = process.exit) => {
const asyncOra = (initialOraValue, asyncFn, processExitFn = process.exit) => {
let fnOra = new MockOra();
if (asyncOra.interactive) {
fnOra = ora(initalOraValue).start();
fnOra = ora(initialOraValue).start();
}
return new Promise((resolve, reject) => {
asyncFn(fnOra).then(() => {
Expand Down
2 changes: 1 addition & 1 deletion test/fast/ora-handler_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('asyncOra', () => {
}).default;
});

it('should create an ora with an inital value', () => {
it('should create an ora with an initial value', () => {
asyncOra('say this first', async () => {});
expect(currentOra).to.not.equal(undefined);
expect(currentOra.text).to.equal('say this first');
Expand Down

0 comments on commit 2f869d8

Please sign in to comment.