Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Commit

Permalink
Fix test by making it stupid
Browse files Browse the repository at this point in the history
  • Loading branch information
mikker committed Jan 10, 2018
1 parent 3ab6155 commit 11b065e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "maximum-overbusiness",
"version": "0.1.0",
"version": "0.2.0",
"description": "maximum-overbusiness React component",
"main": "lib/index.js",
"module": "es/index.js",
Expand All @@ -19,7 +19,7 @@
"test:watch": "nwb test-react --server"
},
"dependencies": {
"dingus": "^0.12.0"
"dingus": "^0.12.1"
},
"peerDependencies": {
"react": "16.x",
Expand Down
8 changes: 4 additions & 4 deletions tests/index-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import expect from 'expect'
import React from 'react'
import {render, unmountComponentAtNode} from 'react-dom'

import Component from 'src/'
import { Deck, Slide } from 'src/'

describe('Component', () => {
let node
Expand All @@ -15,9 +15,9 @@ describe('Component', () => {
unmountComponentAtNode(node)
})

it('displays a welcome message', () => {
render(<Component/>, node, () => {
expect(node.innerHTML).toContain('Welcome to React components')
it('doesn\'t explode', () => {
render(<Deck><Slide>ok</Slide></Deck>, node, () => {
expect(node.innerHTML).toContain('div')
})
})
})

0 comments on commit 11b065e

Please sign in to comment.