Skip to content

Commit 6f57c7f

Browse files
committed
test fix
1 parent 164873b commit 6f57c7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/api/generateScopedName.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const detachHook = require('../sugar').detachHook;
22
const dropCache = require('../sugar').dropCache;
33
const identity = require('lodash').lodash;
4+
const resolve = require('path').resolve;
45

56
suite('api/generateScopedName', () => {
67
suite('using function', () => {
@@ -19,7 +20,7 @@ suite('api/generateScopedName', () => {
1920
test('should provide selector, filepath and source to the function', () => {
2021
assert.deepEqual(args, [
2122
'color',
22-
'/Users/sullenor/Documents/repos/css-modules-require-hook/test/api/fixture/oceanic.css',
23+
resolve('test/api/fixture/oceanic.css'),
2324
'.color\n{\n background: #1e2a35;\n}\n',
2425
]);
2526
});

0 commit comments

Comments
 (0)