-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
58 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import test from "ava" | ||
import compareFixtures from "./lib/compare-fixtures" | ||
import path from "path" | ||
|
||
test("should accept file", t => { | ||
return compareFixtures(t, "custom-resolve-file", { | ||
resolve: () => { | ||
return path.resolve("fixtures/imports/custom-resolve-1.css") | ||
}, | ||
}) | ||
}) | ||
|
||
test("should accept promised file", t => { | ||
return compareFixtures(t, "custom-resolve-file", { | ||
resolve: () => { | ||
return Promise.resolve( | ||
path.resolve("fixtures/imports/custom-resolve-1.css") | ||
) | ||
}, | ||
}) | ||
}) | ||
|
||
test("should accept array of files", t => { | ||
return compareFixtures(t, "custom-resolve-array", { | ||
resolve: () => { | ||
return [ | ||
path.resolve("fixtures/imports/custom-resolve-1.css"), | ||
path.resolve("fixtures/imports/custom-resolve-2.css"), | ||
path.resolve("fixtures/imports/custom-resolve-1.css"), | ||
] | ||
}, | ||
}) | ||
}) | ||
|
||
test("should accept promised array of files", t => { | ||
return compareFixtures(t, "custom-resolve-array", { | ||
resolve: () => { | ||
return Promise.resolve([ | ||
path.resolve("fixtures/imports/custom-resolve-1.css"), | ||
path.resolve("fixtures/imports/custom-resolve-2.css"), | ||
path.resolve("fixtures/imports/custom-resolve-1.css"), | ||
]) | ||
}, | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
.custom-array-1 {} | ||
.custom-array-2 {} | ||
custom-resolve-1 {} | ||
custom-resolve-2 {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import "any-path"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
custom-resolve-1 {} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
custom-resolve-1 {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
custom-resolve-2 {} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters