Skip to content
Permalink
41b91509a3
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
19 lines (12 sloc) 386 Bytes
'use strict'
/* eslint-disable no-magic-numbers */
const google = require('../modules/google')
describe('searchString', () => {
test('check response is valid', async() => {
const data = await google.search('java')
expect(typeof data).toBe('string')
const json = JSON.parse(data)
expect(Array.isArray(json.items)).toBeTruthy()
expect(json.items.length).toBe(20)
})
})