Skip to content

Commit a0fe338

Browse files
committed
Add mocking to stylesheet
1 parent 2fad375 commit a0fe338

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

app/components/Client/Profile/Client.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react';
2-
import { CardStack, Card } from 'react-cardstack';
32
import { Link } from 'react-router'
43

54
import ClientService from 'services/Client'

app/components/IClient/IClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react'
1+
import React from 'react';
22

33
import LoginComponent from 'components/Login/Login'
44
import MenuComponent from 'components/Menu/Menu'

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"npm-run-all": "^3.1.0",
3030
"path": "^0.12.7",
3131
"react-addons-test-utils": "^15.3.2",
32-
"react-cardstack": "^0.1.1",
3332
"react-test-renderer": "^15.3.2",
3433
"style-loader": "^0.13.1",
3534
"url-loader": "^0.5.7",
@@ -46,7 +45,11 @@
4645
"modulePaths": [
4746
"app"
4847
],
49-
"collectCoverage": true
48+
"collectCoverage": true,
49+
"moduleNameMapper": {
50+
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/tests/__mocks__/fileMock.js",
51+
"\\.(css|less)$": "<rootDir>/tests/__mocks__/styleMock.js"
52+
}
5053
},
5154
"author": "",
5255
"license": "ISC"

tests/__mocks__/fileMock.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = 'test-file-stub';

tests/__mocks__/styleMock.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = {};

0 commit comments

Comments
 (0)