mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-09-07 16:50:47 +08:00
*FIX* Readme: Updated unit test examples.
This commit is contained in:
@@ -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