forked from sgfswen/fv-web-ui
-
Notifications
You must be signed in to change notification settings - Fork 4
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
9 changed files
with
293 additions
and
46 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,33 @@ | ||
import React from 'react'; | ||
import TestUtils from 'react/lib/ReactTestUtils'; //I like using the Test Utils, but you can just use the DOM API instead. | ||
import expect from 'expect'; | ||
import providers from '../providers/index'; | ||
import ConfGlobal from 'conf/local.json'; | ||
import AppWrapper from '../views/AppWrapper'; | ||
import ThemeManager from 'material-ui/lib/styles/theme-manager'; | ||
import FirstVoicesTheme from '../views/themes/FirstVoicesTheme.js'; | ||
|
||
const context = { | ||
providers, | ||
providedState: { | ||
properties: { | ||
title: ConfGlobal.title, | ||
pageTitleParams: null, | ||
domain: ConfGlobal.domain, | ||
theme: { | ||
palette: ThemeManager.getMuiTheme(FirstVoicesTheme), | ||
id: 'default' | ||
} | ||
} | ||
} | ||
}; | ||
|
||
/* | ||
Basic test flow to ensure app is rendering | ||
*/ | ||
describe('AppWrapper', function () { | ||
it('renders without problems', function () { | ||
var app = TestUtils.renderIntoDocument(<AppWrapper {...context} />); | ||
expect(app).toBeTruthy(); | ||
}); | ||
}); |
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
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
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 |
---|---|---|
|
@@ -48,7 +48,7 @@ | |
"request": "~2.65.0", | ||
"require-dir": "~1.0.0", | ||
"selectn": "~1.0.9", | ||
"tcomb-form": "~0.9.0", | ||
"tcomb-form": "~0.9", | ||
"tether-shepherd": "^1.8.1", | ||
"underscore": "~1.8.3", | ||
"vinyl-source-stream": "~0.1.1" | ||
|
@@ -60,16 +60,17 @@ | |
"babel-plugin-transform-decorators-legacy": "~1.3.4", | ||
"babel-plugin-transform-react-jsx-component-data-ids": "ssh:https://[email protected]/First-Peoples-Cultural-Council/babel-plugin-transform-react-jsx-component-data-ids.git#v0.1.7", | ||
"babel-plugin-transform-react-jsx-location": "^0.1.5", | ||
"babel-preset-env": "^1.7.0", | ||
"babel-preset-es2015": "^6.24.1", | ||
"babel-preset-react": "~6.24.1", | ||
"babel-preset-stage-0": "~6.24.1", | ||
"babel-preset-env": "^1.7.0", | ||
"bootstrap-webpack": "0.0.3", | ||
"browser-sync": "~2.9.6", | ||
"clean-webpack-plugin": "^0.1.19", | ||
"compression": "~1.4.1", | ||
"css-loader": "~0.14.5", | ||
"del": "~1.2.1", | ||
"expect": "^23.5.0", | ||
"express": "~4.12.2", | ||
"file-loader": "~0.8.4", | ||
"gulp": "~3.9.0", | ||
|
@@ -104,8 +105,10 @@ | |
"karma-mocha": "~0.2.1", | ||
"karma-nyan-reporter": "~0.2.3", | ||
"karma-sinon-chai": "~1.1.0", | ||
"karma-webpack": "^3.0.0", | ||
"less": "~2.5.1", | ||
"less-loader": "~2.2.0", | ||
"mocha": "^5.2.0", | ||
"morgan": "~1.5.1", | ||
"open": "0.0.5", | ||
"react-hot-loader": "~1.3.0", | ||
|
Oops, something went wrong.