Skip to content

Commit

Permalink
eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkace committed Aug 20, 2024
1 parent 9be85e7 commit b41aa4b
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ test("exports", function(t) {
});

test("defaults", function(t) {
let str;

t.plan(1);

str = detabbify("./fake.js");
const str = detabbify("./fake.js");

str.pipe(concat(function(out) {
t.equal(out.toString(), " ", "Should replace \t with 4 spaces");
Expand All @@ -29,11 +27,9 @@ test("defaults", function(t) {
});

test("options", function(t) {
let str;

t.plan(1);

str = detabbify("./fake.js", { spaces : 2 });
const str = detabbify("./fake.js", { spaces : 2 });

str.pipe(concat(function(out) {
t.equal(out.toString(), " ", "Should replace \t with 2 spaces");
Expand All @@ -44,7 +40,7 @@ test("options", function(t) {
});

test("browserify", function(t) {
let build = browserify({
const build = browserify({
entries : from("\t'hello';")
});

Expand All @@ -58,7 +54,7 @@ test("browserify", function(t) {
});

test("browserify + options", function(t) {
let build = browserify({
const build = browserify({
entries : from("\t'hello';")
});

Expand Down

0 comments on commit b41aa4b

Please sign in to comment.