Skip to content
This repository was archived by the owner on Apr 18, 2022. It is now read-only.

Commit dad00bb

Browse files
committed
Upgrade deno to 1.3.0
1 parent e0f3de6 commit dad00bb

File tree

6 files changed

+17
-14
lines changed

6 files changed

+17
-14
lines changed

.denonrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"extensions":[".ts", ".js", ".json"]
3-
}
3+
}

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Install deno
2323
uses: denolib/setup-deno@master
2424
with:
25-
deno-version: 1.2.3
25+
deno-version: 1.3.0
2626
- name: Check formatting
2727
if: matrix.config.kind == 'lint'
2828
run: |

.vscode/settings.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"deno.enable": true
3-
}
2+
"deno.enable": true,
3+
"[typescript]": {
4+
"editor.defaultFormatter": "denoland.vscode-deno"
5+
}
6+
}

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![version](https://img.shields.io/badge/release-v0.4.0-success)](https://github.com/udibo/mock/tree/v0.4.0)
44
[![CI](https://github.com/udibo/mock/workflows/CI/badge.svg)](https://github.com/udibo/mock/actions?query=workflow%3ACI)
5-
[![deno version](https://img.shields.io/badge/deno-v1.2.3-success)](https://github.com/denoland/deno/tree/v1.2.3)
5+
[![deno version](https://img.shields.io/badge/deno-v1.3.0-success)](https://github.com/denoland/deno/tree/v1.3.0)
66
[![deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/[email protected]/mod.ts)
77
[![license](https://img.shields.io/github/license/udibo/mock)](https://github.com/udibo/mock/blob/master/LICENSE)
88

@@ -109,7 +109,7 @@ When spying on a function or instance method, all arguments and return values ar
109109
If you have a function that takes a callback but you don't need it to do anything, you can create an empty spy. An empty spy will just return undefined for any calls made to it.
110110

111111
```ts
112-
import { assertEquals } from "https://deno.land/std@0.64.0/testing/asserts.ts";
112+
import { assertEquals } from "https://deno.land/std@0.65.0/testing/asserts.ts";
113113
import { spy, Spy } from "https://deno.land/x/[email protected]/spy.ts";
114114

115115
function add(
@@ -137,7 +137,7 @@ Deno.test("calls fake callback", () => {
137137
If you have a function that takes a callback that needs to still behave normally, you can wrap it with a spy.
138138

139139
```ts
140-
import { assertEquals } from "https://deno.land/std@0.64.0/testing/asserts.ts";
140+
import { assertEquals } from "https://deno.land/std@0.65.0/testing/asserts.ts";
141141
import { spy, Spy } from "https://deno.land/x/[email protected]/spy.ts";
142142

143143
function filter<T>(values: T[], callback: (value: T) => boolean): any[] {
@@ -165,7 +165,7 @@ Deno.test("calls real callback", () => {
165165
If you have an instance method that needs to still behave normally, you can wrap it with a spy. When you are done spying on a method, you need to call the restore function on the spy object to remove the wrapper from the instance method. If it is not restored and you attempt to wrap it again, it will throw a spy error saying "already spying on function".
166166

167167
```ts
168-
import { assertEquals } from "https://deno.land/std@0.64.0/testing/asserts.ts";
168+
import { assertEquals } from "https://deno.land/std@0.65.0/testing/asserts.ts";
169169
import { spy, Spy } from "https://deno.land/x/[email protected]/spy.ts";
170170

171171
class Database {
@@ -249,7 +249,7 @@ When stubbing an instance method, all arguments and return values are recorded b
249249
If you have an instance method but you don't need it to do or return anything, you can create an empty stub. An empty stub will just return undefined for any calls made to it. If you need it to return specific values instead, you can add return values after initialization by replacing or adding to the `stub.returns` queue. When the returns queue is empty, it will return undefined.
250250

251251
```ts
252-
import { assertEquals } from "https://deno.land/std@0.64.0/testing/asserts.ts";
252+
import { assertEquals } from "https://deno.land/std@0.65.0/testing/asserts.ts";
253253
import { stub, Stub } from "https://deno.land/x/[email protected]/stub.ts";
254254

255255
class Cat {
@@ -283,7 +283,7 @@ Deno.test("doAction", () => {
283283
If you have an instance method but need it to return specific values for each call, you can create a stub with an array of values in the order that you want them returned. You can add more return values after initialization by replacing or adding to the `stub.returns` queue.
284284

285285
```ts
286-
import { assertEquals } from "https://deno.land/std@0.64.0/testing/asserts.ts";
286+
import { assertEquals } from "https://deno.land/std@0.65.0/testing/asserts.ts";
287287
import { stub, Stub } from "https://deno.land/x/[email protected]/stub.ts";
288288

289289
class Database {
@@ -355,7 +355,7 @@ Deno.test("getUsers", () => {
355355
If you have an instance method but need it to call a replacement function instead of the original, you can create a stub with a replacement function. If you need it to return specific values instead, you can add return values after initialization by replacing or adding to the `stub.returns` queue. When the returns queue is empty, it will call the replacement function.
356356

357357
```ts
358-
import { assertEquals } from "https://deno.land/std@0.64.0/testing/asserts.ts";
358+
import { assertEquals } from "https://deno.land/std@0.65.0/testing/asserts.ts";
359359
import { stub, Stub } from "https://deno.land/x/[email protected]/stub.ts";
360360

361361
class Database {
@@ -431,7 +431,7 @@ Overrides the real Date object and timer functions with fake ones that can be
431431
controlled through the fake time instance.
432432

433433
```ts
434-
import { assertEquals } from "https://deno.land/std@0.64.0/testing/asserts.ts";
434+
import { assertEquals } from "https://deno.land/std@0.65.0/testing/asserts.ts";
435435
import { spy, Spy } from "https://deno.land/x/[email protected]/spy.ts";
436436
import { FakeTime } from "https://deno.land/x/[email protected]/time.ts";
437437

deps/std/async/delay.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { delay } from "https://deno.land/std@0.64.0/async/delay.ts";
1+
export { delay } from "https://deno.land/std@0.65.0/async/delay.ts";

deps/std/testing/asserts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ export {
66
assertThrows,
77
assertThrowsAsync,
88
AssertionError,
9-
} from "https://deno.land/std@0.64.0/testing/asserts.ts";
9+
} from "https://deno.land/std@0.65.0/testing/asserts.ts";

0 commit comments

Comments
 (0)