From 7f911b54f18a084cb33aa0184da3369fce725912 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 1 Jul 2015 09:10:32 +0200 Subject: [PATCH] *FIX* Readme: Updated unit test examples. --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index eec44b2..88b7e58 100644 --- a/README.md +++ b/README.md @@ -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(); }); });