UNPKG

449 BJavaScriptView Raw
1// Get polyfill so we can use full ES6 in the tests
2import 'babel-polyfill'
3
4// Get the expect functionality
5import { expect } from 'chai'
6
7// The get module
8const get = require( __dirname + '/../modules/get' )
9
10describe( 'The get function', f => {
11 it( 'Returns html for google.com', done => {
12 get( 'https://www.google.com' ).then( res => {
13 expect( res.html ).to.contain( 'body' )
14 done( )
15 } ).catch( console.log.bind( console ) )
16 } )
17} )
\No newline at end of file