Skip to content

Commit

Permalink
fix lodash import. publish 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Yang committed Feb 9, 2019
1 parent b41ce9b commit d922efc
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ Import mock-echo

Replace global object `Echo` with `new MockEcho()` before every unit test
```javascript

let mockEcho

beforeEach(() => {
mockEcho = new MockEcho()
global.Echo = mockEcho
Expand Down
1 change: 0 additions & 1 deletion index.js

This file was deleted.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mock-echo",
"version": "0.0.3",
"version": "1.0.0",
"description": "Mock laravel Echo",
"main": "dist/index.js",
"scripts": {
Expand All @@ -26,7 +26,7 @@
"lodash": "^4.17.10"
},
"devDependencies": {
"@types/lodash": "^4.14.93",
"@types/lodash": "^4.14.120",
"@types/node": "^6.0.60",
"typescript": "^2.6.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import _ from 'lodash'
import * as _ from "lodash";

class Channel {
events: object
Expand Down

0 comments on commit d922efc

Please sign in to comment.