Skip to content

Commit

Permalink
Update dependency ava to v3 (#415)
Browse files Browse the repository at this point in the history
* Update dependency ava to v3

* Remove import usage

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ryan Zimmerman <opensrc@ryanzim.com>
  • Loading branch information
3 people committed Oct 30, 2020
1 parent 7cdbb2b commit 4344b33
Show file tree
Hide file tree
Showing 13 changed files with 42 additions and 42 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -26,7 +26,7 @@
"resolve": "^1.1.7"
},
"devDependencies": {
"ava": "^1.0.1",
"ava": "^3.0.0",
"eslint": "^5.0.0",
"eslint-config-i-am-meticulous": "^11.0.0",
"eslint-plugin-import": "^2.17.1",
Expand Down
4 changes: 2 additions & 2 deletions test/custom-load.js
@@ -1,8 +1,8 @@
// external tooling
import test from "ava"
const test = require("ava")

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

test.serial("should accept content", checkFixture, "custom-load", {
load: () => "custom-content {}",
Expand Down
10 changes: 5 additions & 5 deletions test/custom-resolve.js
@@ -1,15 +1,15 @@
// builtin tooling
import path from "path"
const path = require("path")

// external tooling
import test from "ava"
import postcss from "postcss"
const test = require("ava")
const postcss = require("postcss")

// plugin
import atImport from ".."
const atImport = require("..")

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

test.serial("should accept file", checkFixture, "custom-resolve-file", {
resolve: () => path.resolve("test/fixtures/imports/custom-resolve-1.css"),
Expand Down
8 changes: 4 additions & 4 deletions test/custom-syntax-parser.js
@@ -1,10 +1,10 @@
// external tooling
import test from "ava"
import scss from "postcss-scss"
import sugarss from "sugarss"
const test = require("ava")
const scss = require("postcss-scss")
const sugarss = require("sugarss")

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

test("should process custom syntax", checkFixture, "scss-syntax", null, {
syntax: scss,
Expand Down
4 changes: 2 additions & 2 deletions test/filter.js
@@ -1,8 +1,8 @@
// external tooling
import test from "ava"
const test = require("ava")

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

test("should filter all imported stylesheets", checkFixture, "filter-all", {
filter: () => false,
Expand Down
10 changes: 5 additions & 5 deletions test/import-events.js
@@ -1,13 +1,13 @@
// builtin tooling
import { readFileSync } from "fs"
import { resolve } from "path"
const { readFileSync } = require("fs")
const { resolve } = require("path")

// external tooling
import test from "ava"
import postcss from "postcss"
const test = require("ava")
const postcss = require("postcss")

// plugin
import atImport from ".."
const atImport = require("..")

test("should add dependency message for each import", t => {
return postcss()
Expand Down
12 changes: 6 additions & 6 deletions test/import.js
@@ -1,16 +1,16 @@
// builtin tooling
import { readFileSync } from "fs"
import path from "path"
const { readFileSync } = require("fs")
const path = require("path")

// external tooling
import test from "ava"
import postcss from "postcss"
const test = require("ava")
const postcss = require("postcss")

// plugin
import atImport from ".."
const atImport = require("..")

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

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

Expand Down
6 changes: 3 additions & 3 deletions test/lint.js
@@ -1,9 +1,9 @@
// external tooling
import test from "ava"
import postcss from "postcss"
const test = require("ava")
const postcss = require("postcss")

// plugin
import atImport from ".."
const atImport = require("..")

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

Expand Down
4 changes: 2 additions & 2 deletions test/media.js
@@ -1,8 +1,8 @@
// external tooling
import test from "ava"
const test = require("ava")

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

test(
"should resolve media queries of import statements",
Expand Down
4 changes: 2 additions & 2 deletions test/order.js
@@ -1,8 +1,8 @@
// external tooling
import test from "ava"
const test = require("ava")

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

test(`should order nested imports correctly`, t => {
let first = true
Expand Down
8 changes: 4 additions & 4 deletions test/plugins.js
@@ -1,12 +1,12 @@
// external tooling
import test from "ava"
import postcss from "postcss"
const test = require("ava")
const postcss = require("postcss")

// plugin
import atImport from ".."
const atImport = require("..")

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

test("should apply plugins to root", t => {
const atRules = []
Expand Down
4 changes: 2 additions & 2 deletions test/resolve.js
@@ -1,8 +1,8 @@
// external tooling
import test from "ava"
const test = require("ava")

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

test("should resolve relative to cwd", checkFixture, "resolve-cwd", {
path: null,
Expand Down
8 changes: 4 additions & 4 deletions test/syntax-error.js
@@ -1,12 +1,12 @@
// builtin tooling
import fs from "fs"
const fs = require("fs")

// external tooling
import test from "ava"
import postcss from "postcss"
const test = require("ava")
const postcss = require("postcss")

// plugin
import atImport from ".."
const atImport = require("..")

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

0 comments on commit 4344b33

Please sign in to comment.