Skip to content

Commit

Permalink
Require Node.js 10
Browse files Browse the repository at this point in the history
Closes #151
  • Loading branch information
sindresorhus committed Aug 7, 2020
1 parent ffcf7e3 commit 87010c5
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
@@ -1,5 +1,5 @@
language: node_js
node_js:
- '14'
- '12'
- '10'
- '8'
14 changes: 7 additions & 7 deletions package.json
Expand Up @@ -11,7 +11,7 @@
"url": "https://sindresorhus.com"
},
"engines": {
"node": ">=8"
"node": ">=10"
},
"scripts": {
"test": "xo && ava && tsd"
Expand All @@ -37,20 +37,20 @@
"idle"
],
"dependencies": {
"chalk": "^3.0.0",
"chalk": "^4.1.0",
"cli-cursor": "^3.1.0",
"cli-spinners": "^2.2.0",
"cli-spinners": "^2.4.0",
"is-interactive": "^1.0.0",
"log-symbols": "^3.0.0",
"log-symbols": "^4.0.0",
"mute-stream": "0.0.8",
"strip-ansi": "^6.0.0",
"wcwidth": "^1.0.1"
},
"devDependencies": {
"@types/node": "^12.7.5",
"@types/node": "^14.0.27",
"ava": "^2.4.0",
"get-stream": "^5.1.0",
"tsd": "^0.10.0",
"xo": "^0.25.3"
"tsd": "^0.13.1",
"xo": "^0.25.0"
}
}
2 changes: 1 addition & 1 deletion readme.md
@@ -1,4 +1,4 @@
# ora [![Build Status](https://travis-ci.com/sindresorhus/ora.svg?branch=master)](https://travis-ci.com/sindresorhus/ora)
# ora [![Build Status](https://travis-ci.com/sindresorhus/ora.svg?branch=master)](https://travis-ci.com/github/sindresorhus/ora)

> Elegant terminal spinner
Expand Down
16 changes: 8 additions & 8 deletions test.js
Expand Up @@ -87,27 +87,27 @@ test('chain call to `.start()` with constructor', t => {

test('.succeed()', macro, spinner => {
spinner.succeed();
}, /(✔|√) foo\n$/);
}, /(?:✔|√) foo\n$/);

test('.succeed() - with new text', macro, spinner => {
spinner.succeed('fooed');
}, /(✔|√) fooed\n$/);
}, /(?:✔|√) fooed\n$/);

test('.fail()', macro, spinner => {
spinner.fail();
}, /(✖|×) foo\n$/);
}, /(?:✖|×) foo\n$/);

test('.fail() - with new text', macro, spinner => {
spinner.fail('failed to foo');
}, /(✖|×) failed to foo\n$/);
}, /(?:✖|×) failed to foo\n$/);

test('.warn()', macro, spinner => {
spinner.warn();
}, /(⚠|‼) foo\n$/);
}, /(?:⚠|‼) foo\n$/);

test('.info()', macro, spinner => {
spinner.info();
}, /(ℹ|i) foo\n$/);
}, /(?:ℹ|i) foo\n$/);

test('.stopAndPersist() - with new text', macro, spinner => {
spinner.stopAndPersist({text: 'all done'});
Expand Down Expand Up @@ -145,7 +145,7 @@ test('.promise() - resolves', async t => {
await resolves;
stream.end();

t.regex(stripAnsi(await output), /(✔|√) foo\n$/);
t.regex(stripAnsi(await output), /(?:✔|√) foo\n$/);
});

test('.promise() - rejects', async t => {
Expand All @@ -166,7 +166,7 @@ test('.promise() - rejects', async t => {

stream.end();

t.regex(stripAnsi(await output), /(✖|×) foo\n$/);
t.regex(stripAnsi(await output), /(?:✖|×) foo\n$/);
});

test('erases wrapped lines', t => {
Expand Down

0 comments on commit 87010c5

Please sign in to comment.