Skip to content

Commit

Permalink
Remove denops/skkeleton/deps/std/assert.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Sep 7, 2024
1 parent 1e18c8e commit 5371eab
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 15 deletions.
3 changes: 2 additions & 1 deletion denops/skkeleton/config_test.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { config } from "./config.ts";
import { Context } from "./context.ts";
import { Denops } from "./deps.ts";
import { assertEquals } from "./deps/std/assert.ts";
import { disable } from "./function/disable.ts";
import { katakana } from "./function/mode.ts";
import { dispatch } from "./function/testutil.ts";
import { currentContext, currentLibrary, variables } from "./store.ts";
import { test } from "./testutil.ts";

import { assertEquals } from "jsr:@std/assert@~1.0.3/equals";

const defaultConfig = { ...config };

const lib = await currentLibrary.get();
Expand Down
1 change: 0 additions & 1 deletion denops/skkeleton/deps/std/assert.ts

This file was deleted.

2 changes: 1 addition & 1 deletion denops/skkeleton/dictionary_test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { assertEquals } from "./deps/std/assert.ts";
import { Dictionary, Library, wrapDictionary } from "./dictionary.ts";
import { Dictionary as SkkDictionary } from "./sources/skk_dictionary.ts";
import { Dictionary as DenoKvDictionary } from "./sources/deno_kv.ts";
import { Dictionary as UserDictionary } from "./sources/user_dictionary.ts";

import { assertEquals } from "jsr:@std/assert@~1.0.3/equals";
import { dirname } from "jsr:@std/path@~1.0.3/dirname";
import { fromFileUrl } from "jsr:@std/path@~1.0.3/from-file-url";
import { join } from "jsr:@std/path@~1.0.3/join";
Expand Down
3 changes: 2 additions & 1 deletion denops/skkeleton/function/common_test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { config } from "../config.ts";
import { Context } from "../context.ts";
import { assertEquals } from "../deps/std/assert.ts";
import { currentLibrary } from "../store.ts";
import { cancel, kakutei, kakuteiKey } from "./common.ts";
import { katakana } from "./mode.ts";
import { dispatch } from "./testutil.ts";

import { assertEquals } from "jsr:@std/assert@~1.0.3/equals";

const lib = await currentLibrary.get();

await lib.registerHenkanResult("okurinasi", "あ", "い");
Expand Down
3 changes: 2 additions & 1 deletion denops/skkeleton/function/dictionary_test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { Denops } from "../deps.ts";
import { assertEquals } from "../deps/std/assert.ts";
import { currentKanaTable, getKanaTable } from "../kana.ts";
import { HenkanState } from "../state.ts";
import { currentContext } from "../store.ts";
import { test } from "../testutil.ts";
import { registerWord } from "./dictionary.ts";

import { assertEquals } from "jsr:@std/assert@~1.0.3/equals";

test({
mode: "all",
name: "Don't put string when register dictionary was cancelled",
Expand Down
3 changes: 2 additions & 1 deletion denops/skkeleton/function/disable_test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { Denops } from "../deps.ts";
import { assertEquals } from "../deps/std/assert.ts";
import { currentContext } from "../store.ts";
import { test } from "../testutil.ts";
import { dispatch } from "./testutil.ts";

import { assertEquals } from "jsr:@std/assert@~1.0.3/equals";

// deno-lint-ignore no-explicit-any
async function getResult(x: Promise<any>): Promise<string> {
return (await x)?.result;
Expand Down
3 changes: 2 additions & 1 deletion denops/skkeleton/function/henkan_test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { Context } from "../context.ts";
import { assertEquals } from "../deps/std/assert.ts";
import { currentLibrary } from "../store.ts";
import { dispatch } from "./testutil.ts";

import { assertEquals } from "jsr:@std/assert@~1.0.3/equals";

const l = await currentLibrary.get();
await l.registerHenkanResult("okurinasi", "へんかん", "返還");
await l.registerHenkanResult("okurinasi", "へんかん", "変換");
Expand Down
3 changes: 2 additions & 1 deletion denops/skkeleton/function/input_test.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { config } from "../config.ts";
import { Context } from "../context.ts";
import { Denops, op } from "../deps.ts";
import { assertEquals } from "../deps/std/assert.ts";
import { test } from "../testutil.ts";
import { kakutei } from "./common.ts";
import { deleteChar, henkanPoint } from "./input.ts";
import { hankatakana, katakana } from "./mode.ts";
import { dispatch } from "./testutil.ts";

import { assertEquals } from "jsr:@std/assert@~1.0.3/equals";

Deno.test({
name: "kana input",
async fn() {
Expand Down
3 changes: 2 additions & 1 deletion denops/skkeleton/function/mode_test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { autocmd, Denops, vars } from "../deps.ts";
import { assertEquals } from "../deps/std/assert.ts";
import { currentKanaTable } from "../kana.ts";
import { currentLibrary } from "../store.ts";
import { currentContext } from "../store.ts";
Expand All @@ -9,6 +8,8 @@ import { deleteChar, kanaInput } from "./input.ts";
import { abbrev, hankatakana, katakana, zenkaku } from "./mode.ts";
import { dispatch } from "./testutil.ts";

import { assertEquals } from "jsr:@std/assert@~1.0.3/equals";

test({
mode: "all",
name: "Can get skkeleton mode",
Expand Down
6 changes: 4 additions & 2 deletions denops/skkeleton/kana_test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { Denops } from "./deps.ts";
import { config } from "./config.ts";
import { Context } from "./context.ts";
import { assertEquals } from "./deps/std/assert.ts";
import { dispatch } from "./function/testutil.ts";
import { registerKanaTable } from "./kana.ts";
import { currentContext } from "./store.ts";
import { test } from "./testutil.ts";

import { assertEquals } from "jsr:@std/assert@~1.0.3/equals";

Deno.test({
name: "customize kanatable",
async fn() {
Expand Down Expand Up @@ -34,7 +36,7 @@ Deno.test({
test({
mode: "all",
name: "create kanatable",
async fn(denops) {
async fn(denops: Denops) {
registerKanaTable("test", {
a: ["hoge", ""],
}, true);
Expand Down
6 changes: 4 additions & 2 deletions denops/skkeleton/keymap_test.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { Denops } from "./deps.ts";
import { test } from "./testutil.ts";
import { assertEquals } from "./deps/std/assert.ts";
import { currentLibrary } from "./store.ts";
import { currentContext } from "./store.ts";

import { assertEquals } from "jsr:@std/assert@~1.0.3/equals";

test({
mode: "nvim", // can input mode test only in nvim
name: "registerKeyMap",
async fn(denops) {
async fn(denops: Denops) {
const lib = await currentLibrary.get();
lib.registerHenkanResult("okurinasi", "あ", "亜");
await denops.cmd('call skkeleton#register_keymap("henkan", "x", "")');
Expand Down
3 changes: 2 additions & 1 deletion denops/skkeleton/preedit_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { assertEquals } from "./deps/std/assert.ts";
import { PreEdit } from "./preedit.ts";

import { assertEquals } from "jsr:@std/assert@~1.0.3/equals";

Deno.test({
name: "preedit test",
fn() {
Expand Down
3 changes: 2 additions & 1 deletion denops/skkeleton/util_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { assertEquals } from "./deps/std/assert.ts";
import { LazyCell } from "./util.ts";

import { assertEquals } from "jsr:@std/assert@~1.0.3/equals";

Deno.test({
name: "LazyCell",
async fn(t) {
Expand Down

0 comments on commit 5371eab

Please sign in to comment.