Skip to content

Commit 7ddf352

Browse files
committed
Refactor
1 parent 2ae9156 commit 7ddf352

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/css-mqpacker_test.js renamed to test/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ exports["Option: sort"] = test => {
104104

105105
exports["Real CSS"] = test => {
106106
const testCases = fs.readdirSync(path.join(__dirname, "fixtures"));
107-
const loadExpected = file =>
107+
const readExpected = file =>
108108
fs.readFileSync(path.join(__dirname, "expected", file), "utf8");
109-
const loadInput = file =>
109+
const readInput = file =>
110110
fs.readFileSync(path.join(__dirname, "fixtures", file), "utf8");
111111
test.expect(testCases.length);
112112
testCases.forEach(testCase => {
@@ -119,8 +119,8 @@ exports["Real CSS"] = test => {
119119
}
120120

121121
test.strictEqual(
122-
mqpacker.pack(loadInput(testCase), opts).css,
123-
loadExpected(testCase),
122+
mqpacker.pack(readInput(testCase), opts).css,
123+
readExpected(testCase),
124124
testCase
125125
);
126126
});

0 commit comments

Comments
 (0)