mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-10-29 13:11:10 +08:00
*FIX* Readme: Updated unit test examples.
This commit is contained in:
1 parent
15e04c14de
commit
7f911b54f1
1 file changed
+7
-7
@@ -186,14 +186,14 @@ and same test for both architectures:
|
||||
```js
|
||||
'use strict';
|
||||
|
||||
describe('BarActionCreators', function() {
|
||||
var action;
|
||||
describe('BarActionCreators', () => {
|
||||
let action;
|
||||
|
||||
beforeEach(function() {
|
||||
action = require('actions/BarActionCreators.js');
|
||||
});
|
||||
|
||||
it('should be defined', function() {
|
||||
it('should be defined', () => {
|
||||
expect(action).toBeDefined();
|
||||
});
|
||||
});
|
||||
@@ -252,14 +252,14 @@ and same test for both architectures:
|
||||
```js
|
||||
'use strict';
|
||||
|
||||
describe('BazStore', function() {
|
||||
var store;
|
||||
describe('BazStore', () => {
|
||||
let store;
|
||||
|
||||
beforeEach(function() {
|
||||
beforeEach(() => {
|
||||
store = require('stores/BazStore.js');
|
||||
});
|
||||
|
||||
it('should be defined', function() {
|
||||
it('should be defined', () => {
|
||||
expect(store).toBeDefined();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user