Skip to content

Commit 9ab40e0

Browse files
committed
fix: utils -> queries
1 parent 4d09839 commit 9ab40e0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ before_install:
1010
- npm install -g yarn coveralls nyc
1111
script:
1212
- yarn rebuild
13-
# - yarn test:lint
13+
- yarn test:lint
1414
- yarn test:unit --coverage --runInBand --verbose
1515
after_success:
1616
- cat coverage/lcov.info | coveralls || echo 'Failed to upload to coveralls...'

lib/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,5 @@ export function extendObjectWithTestingUtils(object: any, contextFn?: ContextFn)
8989
}
9090

9191
// @ts-ignore
92-
export const utils: ITestUtils = {}
93-
extendObjectWithTestingUtils(utils, el => el)
92+
export const queries: ITestUtils = {}
93+
extendObjectWithTestingUtils(queries, el => el)

test/index.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as path from 'path'
22
import * as puppeteer from 'puppeteer'
3-
import {getDocument, utils} from '../lib'
3+
import {getDocument, queries} from '../lib'
44

55
describe('lib/index.ts', () => {
66
let browser: puppeteer.Browser
@@ -14,7 +14,7 @@ describe('lib/index.ts', () => {
1414

1515
it('should export the utilities', async () => {
1616
const document = await getDocument(page)
17-
const element = await utils.getByText(document, 'Hello h1')
17+
const element = await queries.getByText(document, 'Hello h1')
1818
expect(await page.evaluate(el => el.textContent, element)).toEqual('Hello h1')
1919
})
2020

0 commit comments

Comments
 (0)