Skip to content
Permalink
Browse files

style(generic): fixed typos

  • Loading branch information
malept committed Jan 29, 2017
1 parent f01f990 commit 2f869d812fcdf45408d7257149a3e2fd7792e3b0
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/util/ora-handler.js
  2. +1 −1 test/fast/ora-handler_spec.js
@@ -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(() => {
@@ -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');

0 comments on commit 2f869d8

Please sign in to comment.
You can’t perform that action at this time.