Skip to content

Commit

Permalink
fix: require the SDK utils directly (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
djones committed Apr 5, 2019
2 parents 72b03ad + baa11bc commit 43cfb7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# percy-nightwatch
# @percy/nightwatch

[![Package Status](https://img.shields.io/npm/v/@percy/nightwatch.svg)](https://www.npmjs.com/package/@percy/nightwatch) [![This project is using Percy.io for visual regression testing.](https://percy.io/static/images/percy-badge.svg)](https://percy.io/percy/percy-nightwatch) [![CircleCI](https://circleci.com/gh/percy/percy-nightwatch.svg?style=svg)](https://circleci.com/gh/percy/percy-nightwatch)

Expand Down
5 changes: 2 additions & 3 deletions lib/percySnapshot.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import fs = require('fs')
import { agentJsFilename } from '@percy/agent'
import { clientInfo } from './environment'

const { agentJsFilename } = require('@percy/agent/dist/utils/sdk-utils')
declare var PercyAgent: any

/**
Expand All @@ -23,7 +22,7 @@ export function command(this: any, name: string, options: any = {}) {
const percyAgentClient = new PercyAgent({ clientInfo })
percyAgentClient.snapshot(name, options)
},
[name, options, clientInfo()]
[name, options, clientInfo()],
)
}

Expand Down

0 comments on commit 43cfb7e

Please sign in to comment.