Skip to content

Commit

Permalink
Remove sinon.restore(object|method) from v3.x+ docs
Browse files Browse the repository at this point in the history
These public methods were removed with the v3.0.0 release
  • Loading branch information
mroderick committed Nov 7, 2017
1 parent 9ae6f73 commit 8c54024
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 200 deletions.
20 changes: 0 additions & 20 deletions docs/_releases/v3.0.0/utils.md
Expand Up @@ -8,26 +8,6 @@ Sinon.JS has a few utilities used internally in `lib/sinon.js`. Unless the metho

## Utils API

#### `sinon.restore(object);`

Restores all fake methods of supplied object

```javascript
sinon.stub(obj);

// run tests...

sinon.restore(obj);
```

#### `sinon.restore(method);`

Restores supplied method

```javascript
sinon.restore(obj.someMethod);
```

#### `sinon.createStubInstance(constructor);`

Creates a new object with the given function as the protoype and stubs all implemented functions.
Expand Down
20 changes: 0 additions & 20 deletions docs/_releases/v3.1.0/utils.md
Expand Up @@ -8,26 +8,6 @@ Sinon.JS has a few utilities used internally in `lib/sinon.js`. Unless the metho

## Utils API

#### `sinon.restore(object);`

Restores all fake methods of supplied object

```javascript
sinon.stub(obj);

// run tests...

sinon.restore(obj);
```

#### `sinon.restore(method);`

Restores supplied method

```javascript
sinon.restore(obj.someMethod);
```

#### `sinon.createStubInstance(constructor);`

Creates a new object with the given function as the protoype and stubs all implemented functions.
Expand Down
20 changes: 0 additions & 20 deletions docs/_releases/v3.2.0/utils.md
Expand Up @@ -8,26 +8,6 @@ Sinon.JS has a few utilities used internally in `lib/sinon.js`. Unless the metho

## Utils API

#### `sinon.restore(object);`

Restores all fake methods of supplied object

```javascript
sinon.stub(obj);

// run tests...

sinon.restore(obj);
```

#### `sinon.restore(method);`

Restores supplied method

```javascript
sinon.restore(obj.someMethod);
```

#### `sinon.createStubInstance(constructor);`

Creates a new object with the given function as the protoype and stubs all implemented functions.
Expand Down
20 changes: 0 additions & 20 deletions docs/_releases/v3.2.1/utils.md
Expand Up @@ -8,26 +8,6 @@ Sinon.JS has a few utilities used internally in `lib/sinon.js`. Unless the metho

## Utils API

#### `sinon.restore(object);`

Restores all fake methods of supplied object

```javascript
sinon.stub(obj);

// run tests...

sinon.restore(obj);
```

#### `sinon.restore(method);`

Restores supplied method

```javascript
sinon.restore(obj.someMethod);
```

#### `sinon.createStubInstance(constructor);`

Creates a new object with the given function as the protoype and stubs all implemented functions.
Expand Down
20 changes: 0 additions & 20 deletions docs/_releases/v3.3.0/utils.md
Expand Up @@ -8,26 +8,6 @@ Sinon.JS has a few utilities used internally in `lib/sinon.js`. Unless the metho

## Utils API

#### `sinon.restore(object);`

Restores all fake methods of supplied object

```javascript
sinon.stub(obj);

// run tests...

sinon.restore(obj);
```

#### `sinon.restore(method);`

Restores supplied method

```javascript
sinon.restore(obj.someMethod);
```

#### `sinon.createStubInstance(constructor);`

Creates a new object with the given function as the protoype and stubs all implemented functions.
Expand Down
20 changes: 0 additions & 20 deletions docs/_releases/v4.0.0/utils.md
Expand Up @@ -8,26 +8,6 @@ Sinon.JS has a few utilities used internally in `lib/sinon.js`. Unless the metho

## Utils API

#### `sinon.restore(object);`

Restores all fake methods of supplied object

```javascript
sinon.stub(obj);

// run tests...

sinon.restore(obj);
```

#### `sinon.restore(method);`

Restores supplied method

```javascript
sinon.restore(obj.someMethod);
```

#### `sinon.createStubInstance(constructor);`

Creates a new object with the given function as the protoype and stubs all implemented functions.
Expand Down
20 changes: 0 additions & 20 deletions docs/_releases/v4.0.1/utils.md
Expand Up @@ -8,26 +8,6 @@ Sinon.JS has a few utilities used internally in `lib/sinon.js`. Unless the metho

## Utils API

#### `sinon.restore(object);`

Restores all fake methods of supplied object

```javascript
sinon.stub(obj);

// run tests...

sinon.restore(obj);
```

#### `sinon.restore(method);`

Restores supplied method

```javascript
sinon.restore(obj.someMethod);
```

#### `sinon.createStubInstance(constructor);`

Creates a new object with the given function as the protoype and stubs all implemented functions.
Expand Down
20 changes: 0 additions & 20 deletions docs/_releases/v4.0.2/utils.md
Expand Up @@ -8,26 +8,6 @@ Sinon.JS has a few utilities used internally in `lib/sinon.js`. Unless the metho

## Utils API

#### `sinon.restore(object);`

Restores all fake methods of supplied object

```javascript
sinon.stub(obj);

// run tests...

sinon.restore(obj);
```

#### `sinon.restore(method);`

Restores supplied method

```javascript
sinon.restore(obj.someMethod);
```

#### `sinon.createStubInstance(constructor);`

Creates a new object with the given function as the protoype and stubs all implemented functions.
Expand Down
20 changes: 0 additions & 20 deletions docs/_releases/v4.1.0/utils.md
Expand Up @@ -8,26 +8,6 @@ Sinon.JS has a few utilities used internally in `lib/sinon.js`. Unless the metho

## Utils API

#### `sinon.restore(object);`

Restores all fake methods of supplied object

```javascript
sinon.stub(obj);

// run tests...

sinon.restore(obj);
```

#### `sinon.restore(method);`

Restores supplied method

```javascript
sinon.restore(obj.someMethod);
```

#### `sinon.createStubInstance(constructor);`

Creates a new object with the given function as the protoype and stubs all implemented functions.
Expand Down
20 changes: 0 additions & 20 deletions docs/_releases/v4.1.1/utils.md
Expand Up @@ -8,26 +8,6 @@ Sinon.JS has a few utilities used internally in `lib/sinon.js`. Unless the metho

## Utils API

#### `sinon.restore(object);`

Restores all fake methods of supplied object

```javascript
sinon.stub(obj);

// run tests...

sinon.restore(obj);
```

#### `sinon.restore(method);`

Restores supplied method

```javascript
sinon.restore(obj.someMethod);
```

#### `sinon.createStubInstance(constructor);`

Creates a new object with the given function as the protoype and stubs all implemented functions.
Expand Down

0 comments on commit 8c54024

Please sign in to comment.