Skip to content

Commit

Permalink
Fix broken tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaine Schmeisser committed Jan 14, 2017
1 parent 1980965 commit 4913bef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 deletions.
22 changes: 1 addition & 21 deletions test/hello.spec.js
Expand Up @@ -2,29 +2,9 @@ const expect = require('chai').expect
const hello = require('../src/hello')()

describe('Hello', () => {
describe('.respondsTo', () => {
it('responds to "hello"', () => {
expect(hello.respondsTo('hello')).to.be.ok
})

it('responds to "hello world"', () => {
expect(hello.respondsTo('hello world')).to.be.ok
})

it('does not responds to "meow world"', () => {
expect(hello.respondsTo('meow world')).to.not.be.ok
})
})

describe('.search', () => {
it('does not include a name', () => {
hello.search('hello').then((results) => {
expect(results[0].title).to.not.include('spock')
})
})

it('does include a name', () => {
hello.search('hello spock').then((results) => {
hello('spock').then((results) => {
expect(results[0].title).to.include('spock')
})
})
Expand Down
8 changes: 8 additions & 0 deletions test/zazu.spec.js
@@ -0,0 +1,8 @@
const expect = require('chai').expect

describe('zazu.json', () => {
it('is valid', () => {
const zazu = require('../zazu.json')
expect(zazu).to.be.an('object')
})
})

0 comments on commit 4913bef

Please sign in to comment.