1 | // Get polyfill so we can use full ES6 in the tests
|
2 | import 'babel-polyfill'
|
3 |
|
4 | // Get the expect functionality
|
5 | import { expect } from 'chai'
|
6 |
|
7 | // The get module
|
8 | const get = require( __dirname + '/../modules/get' )
|
9 |
|
10 | describe( '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 |