Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Jan 5, 2025
1 parent ff6e291 commit 8324d47
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 20 deletions.
4 changes: 1 addition & 3 deletions packages/formatter-progress-bar/lib/progress-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,4 @@ function formatOk() {
return `# ✅ ${spaces}ok`;
}

function formatSkip(skiped) {
return `# ${WARNING} skip ${skiped}`;
}
const formatSkip = (skiped) => `# ${WARNING} skip ${skiped}`;
14 changes: 6 additions & 8 deletions packages/supertape/lib/cli.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -769,14 +769,12 @@ test('supertape: cli: validation', async (t) => {
t.end();
});

function createStream() {
return new Transform({
transform(chunk, encoding, callback) {
this.push(chunk);
callback();
},
});
}
const createStream = () => new Transform({
transform(chunk, encoding, callback) {
this.push(chunk);
callback();
},
});

async function runCli(options) {
const {
Expand Down
5 changes: 4 additions & 1 deletion packages/supertape/lib/operators.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ import {formatOutput, parseAt} from './format.js';

const {entries} = Object;
const isAsync = (a) => a[Symbol.toStringTag] === 'AsyncFunction';
const encode = (a) => a.replace(')', '\\)').replace('(', '\\(');

const encode = (a) => a
.replace(')', '\\)')
.replace('(', '\\(');

const maybeRegExp = (a) => {
if (!isStr(a))
Expand Down
14 changes: 6 additions & 8 deletions packages/supertape/lib/supertape.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1048,11 +1048,9 @@ test('supertape: createTest: formatter', async (t) => {
t.end();
});

function createStream() {
return new Transform({
transform(chunk, encoding, callback) {
this.push(chunk);
callback();
},
});
}
const createStream = () => new Transform({
transform(chunk, encoding, callback) {
this.push(chunk);
callback();
},
});

0 comments on commit 8324d47

Please sign in to comment.