Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
rename test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
wingleung committed May 12, 2018
1 parent d0be64d commit 53149e7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
6 changes: 2 additions & 4 deletions test/renderReactClient-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,16 @@ import ExampleReactComponent from './components/ExampleReactComponent';
import { renderReactServer } from '../lib/server';
import { renderReact, renderReactClient } from '../lib/client';

describe('client.renderReact', () => {
describe('client', () => {
let result;
beforeEach(() => {
result = renderReactServer('ExampleReactComponent', ExampleReactComponent)({ name: 'Desmond' });
});

it('has correct markup on server', () => {
assert.isString(result);
assert.match(result, /Hello Desmond/);
});

it('exists', () => {
it('renderReact exists', () => {
assert.isFunction(renderReact);
assert.equal(renderReact.length, 2);
});
Expand Down
4 changes: 2 additions & 2 deletions test/renderReactServer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { assert } from 'chai';
import ExampleReactComponent from './components/ExampleReactComponent';
import { renderReact, renderReactServer } from '../lib/server';

describe('server.renderReact', () => {
describe('server renderReact', () => {
let result;
beforeEach(() => {
result = renderReact('ExampleReactComponent', ExampleReactComponent)({ name: 'Desmond' });
Expand All @@ -19,7 +19,7 @@ describe('server.renderReact', () => {
assert.equal(renderReactServer.length, 2);
});

it('has correct markup on server', () => {
it('has correct markup', () => {
assert.isString(result);
assert.match(result, /Hello Desmond/);
});
Expand Down
2 changes: 1 addition & 1 deletion test/renderReactStatic-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import ExampleReactComponent from './components/ExampleReactComponent';
import { renderReactStatic } from '..';
import * as renderReactServerModule from '../lib/server';

describe('renderReact', () => {
describe('renderReactStatic', () => {
it('exists', () => {
assert.isFunction(renderReactStatic);
assert.equal(renderReactStatic.length, 2);
Expand Down
4 changes: 2 additions & 2 deletions test/renderReactStaticServer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { assert } from 'chai';
import ExampleReactComponent from './components/ExampleReactComponent';
import { renderReactStatic } from '../lib/server';

describe('server.renderReactStatic', () => {
describe('server renderReactStatic', () => {
it('exists', () => {
assert.isFunction(renderReactStatic);
assert.equal(renderReactStatic.length, 2);
});

it('has correct markup on server', () => {
it('has correct markup', () => {
const result = renderReactStatic('ExampleReactComponent', ExampleReactComponent)({ name: 'Zack' });

assert.isString(result);
Expand Down

0 comments on commit 53149e7

Please sign in to comment.