Skip to content

Commit 4344b33

Browse files
renovate[bot]renovate-botRyanZim
authored
Update dependency ava to v3 (#415)
* Update dependency ava to v3 * Remove import usage Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Ryan Zimmerman <[email protected]>
1 parent 7cdbb2b commit 4344b33

13 files changed

+42
-42
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"resolve": "^1.1.7"
2727
},
2828
"devDependencies": {
29-
"ava": "^1.0.1",
29+
"ava": "^3.0.0",
3030
"eslint": "^5.0.0",
3131
"eslint-config-i-am-meticulous": "^11.0.0",
3232
"eslint-plugin-import": "^2.17.1",

test/custom-load.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// external tooling
2-
import test from "ava"
2+
const test = require("ava")
33

44
// internal tooling
5-
import checkFixture from "./helpers/check-fixture"
5+
const checkFixture = require("./helpers/check-fixture")
66

77
test.serial("should accept content", checkFixture, "custom-load", {
88
load: () => "custom-content {}",

test/custom-resolve.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
// builtin tooling
2-
import path from "path"
2+
const path = require("path")
33

44
// external tooling
5-
import test from "ava"
6-
import postcss from "postcss"
5+
const test = require("ava")
6+
const postcss = require("postcss")
77

88
// plugin
9-
import atImport from ".."
9+
const atImport = require("..")
1010

1111
// internal tooling
12-
import checkFixture from "./helpers/check-fixture"
12+
const checkFixture = require("./helpers/check-fixture")
1313

1414
test.serial("should accept file", checkFixture, "custom-resolve-file", {
1515
resolve: () => path.resolve("test/fixtures/imports/custom-resolve-1.css"),

test/custom-syntax-parser.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// external tooling
2-
import test from "ava"
3-
import scss from "postcss-scss"
4-
import sugarss from "sugarss"
2+
const test = require("ava")
3+
const scss = require("postcss-scss")
4+
const sugarss = require("sugarss")
55

66
// internal tooling
7-
import checkFixture from "./helpers/check-fixture"
7+
const checkFixture = require("./helpers/check-fixture")
88

99
test("should process custom syntax", checkFixture, "scss-syntax", null, {
1010
syntax: scss,

test/filter.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// external tooling
2-
import test from "ava"
2+
const test = require("ava")
33

44
// internal tooling
5-
import checkFixture from "./helpers/check-fixture"
5+
const checkFixture = require("./helpers/check-fixture")
66

77
test("should filter all imported stylesheets", checkFixture, "filter-all", {
88
filter: () => false,

test/import-events.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// builtin tooling
2-
import { readFileSync } from "fs"
3-
import { resolve } from "path"
2+
const { readFileSync } = require("fs")
3+
const { resolve } = require("path")
44

55
// external tooling
6-
import test from "ava"
7-
import postcss from "postcss"
6+
const test = require("ava")
7+
const postcss = require("postcss")
88

99
// plugin
10-
import atImport from ".."
10+
const atImport = require("..")
1111

1212
test("should add dependency message for each import", t => {
1313
return postcss()

test/import.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
// builtin tooling
2-
import { readFileSync } from "fs"
3-
import path from "path"
2+
const { readFileSync } = require("fs")
3+
const path = require("path")
44

55
// external tooling
6-
import test from "ava"
7-
import postcss from "postcss"
6+
const test = require("ava")
7+
const postcss = require("postcss")
88

99
// plugin
10-
import atImport from ".."
10+
const atImport = require("..")
1111

1212
// internal tooling
13-
import checkFixture from "./helpers/check-fixture"
13+
const checkFixture = require("./helpers/check-fixture")
1414

1515
test("should import stylsheets", checkFixture, "simple")
1616

test/lint.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// external tooling
2-
import test from "ava"
3-
import postcss from "postcss"
2+
const test = require("ava")
3+
const postcss = require("postcss")
44

55
// plugin
6-
import atImport from ".."
6+
const atImport = require("..")
77

88
const processor = postcss().use(atImport())
99

test/media.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// external tooling
2-
import test from "ava"
2+
const test = require("ava")
33

44
// internal tooling
5-
import checkFixture from "./helpers/check-fixture"
5+
const checkFixture = require("./helpers/check-fixture")
66

77
test(
88
"should resolve media queries of import statements",

test/order.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// external tooling
2-
import test from "ava"
2+
const test = require("ava")
33

44
// internal tooling
5-
import checkFixture from "./helpers/check-fixture"
5+
const checkFixture = require("./helpers/check-fixture")
66

77
test(`should order nested imports correctly`, t => {
88
let first = true

test/plugins.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// external tooling
2-
import test from "ava"
3-
import postcss from "postcss"
2+
const test = require("ava")
3+
const postcss = require("postcss")
44

55
// plugin
6-
import atImport from ".."
6+
const atImport = require("..")
77

88
// internal tooling
9-
import checkFixture from "./helpers/check-fixture"
9+
const checkFixture = require("./helpers/check-fixture")
1010

1111
test("should apply plugins to root", t => {
1212
const atRules = []

test/resolve.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// external tooling
2-
import test from "ava"
2+
const test = require("ava")
33

44
// internal tooling
5-
import checkFixture from "./helpers/check-fixture"
5+
const checkFixture = require("./helpers/check-fixture")
66

77
test("should resolve relative to cwd", checkFixture, "resolve-cwd", {
88
path: null,

test/syntax-error.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// builtin tooling
2-
import fs from "fs"
2+
const fs = require("fs")
33

44
// external tooling
5-
import test from "ava"
6-
import postcss from "postcss"
5+
const test = require("ava")
6+
const postcss = require("postcss")
77

88
// plugin
9-
import atImport from ".."
9+
const atImport = require("..")
1010

1111
test("SyntaxError in imported file throws", t => {
1212
return postcss(atImport({ path: "test/fixtures/imports" }))

0 commit comments

Comments
 (0)