Skip to content

Commit

Permalink
Use js syntax in README
Browse files Browse the repository at this point in the history
  • Loading branch information
mdrobny committed Jan 31, 2017
1 parent c7b4271 commit dc68619
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $ npm install spy-stub

## spy(object, method)

```
```js
const { spy } = require('spy-stub');

const object = {
Expand All @@ -41,7 +41,7 @@ it('should spy on a "snore" function', () => {
```

## stub()
```
```js
const { stub } = require('spy-stub');

function functionToTest(number, snore) {
Expand All @@ -63,7 +63,7 @@ it('should stub "snore" function', () => {
```

## stub(mockFunction)
```
```js
const { stub } = require('spy-stub');

function functionToTest(number, snore) {
Expand All @@ -84,7 +84,7 @@ it('should stub "snore" function', () => {
```

## stub(object, method, mockFunction)
```
```js
const { stub } = require('spy-stub');

it('should stub "snore" function', () => {
Expand Down

0 comments on commit dc68619

Please sign in to comment.