summaryrefslogtreecommitdiff
path: root/testing/diff_test.ts
diff options
context:
space:
mode:
authorVincent LE GOFF <g_n_s@hotmail.fr>2019-04-24 13:41:23 +0200
committerRyan Dahl <ry@tinyclouds.org>2019-04-24 07:41:22 -0400
commitdcd01dd02530df0e799eb4227087680ffeb80d74 (patch)
tree8cc1dec75dd17c326fea6d7fe471b7e7a31032f7 /testing/diff_test.ts
parente1f7a60bb326f8299f339635c0738d28431afa0a (diff)
Eslint fixes (denoland/deno_std#356)
Make warnings fail Original: https://github.com/denoland/deno_std/commit/4543b563a9a01c8c168aafcbfd9d4634effba7fc
Diffstat (limited to 'testing/diff_test.ts')
-rw-r--r--testing/diff_test.ts20
1 files changed, 10 insertions, 10 deletions
diff --git a/testing/diff_test.ts b/testing/diff_test.ts
index e62f45248..d9fbdb956 100644
--- a/testing/diff_test.ts
+++ b/testing/diff_test.ts
@@ -4,14 +4,14 @@ import { test } from "./mod.ts";
test({
name: "empty",
- fn() {
+ fn(): void {
assertEquals(diff([], []), []);
}
});
test({
name: '"a" vs "b"',
- fn() {
+ fn(): void {
assertEquals(diff(["a"], ["b"]), [
{ type: "removed", value: "a" },
{ type: "added", value: "b" }
@@ -21,28 +21,28 @@ test({
test({
name: '"a" vs "a"',
- fn() {
+ fn(): void {
assertEquals(diff(["a"], ["a"]), [{ type: "common", value: "a" }]);
}
});
test({
name: '"a" vs ""',
- fn() {
+ fn(): void {
assertEquals(diff(["a"], []), [{ type: "removed", value: "a" }]);
}
});
test({
name: '"" vs "a"',
- fn() {
+ fn(): void {
assertEquals(diff([], ["a"]), [{ type: "added", value: "a" }]);
}
});
test({
name: '"a" vs "a, b"',
- fn() {
+ fn(): void {
assertEquals(diff(["a"], ["a", "b"]), [
{ type: "common", value: "a" },
{ type: "added", value: "b" }
@@ -52,7 +52,7 @@ test({
test({
name: '"strength" vs "string"',
- fn() {
+ fn(): void {
assertEquals(diff(Array.from("strength"), Array.from("string")), [
{ type: "common", value: "s" },
{ type: "common", value: "t" },
@@ -69,7 +69,7 @@ test({
test({
name: '"strength" vs ""',
- fn() {
+ fn(): void {
assertEquals(diff(Array.from("strength"), Array.from("")), [
{ type: "removed", value: "s" },
{ type: "removed", value: "t" },
@@ -85,7 +85,7 @@ test({
test({
name: '"" vs "strength"',
- fn() {
+ fn(): void {
assertEquals(diff(Array.from(""), Array.from("strength")), [
{ type: "added", value: "s" },
{ type: "added", value: "t" },
@@ -101,7 +101,7 @@ test({
test({
name: '"abc", "c" vs "abc", "bcd", "c"',
- fn() {
+ fn(): void {
assertEquals(diff(["abc", "c"], ["abc", "bcd", "c"]), [
{ type: "common", value: "abc" },
{ type: "added", value: "bcd" },