diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-01-30 03:16:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-29 21:16:48 -0500 |
commit | 73a3cc21d0e7ceec1275078db125f57ce97725fb (patch) | |
tree | 17d845d5d125d3ba8ecefa49e57e02e9c088c68b /std/prettier/ignore_test.ts | |
parent | f0a6062012c4e09553877c9feedb3fbc3d4625b9 (diff) |
feat: dprint formatter (#3820)
* rewrite fmt_test in Rust, remove tools/fmt_test.py
* remove //std/prettier
Diffstat (limited to 'std/prettier/ignore_test.ts')
-rw-r--r-- | std/prettier/ignore_test.ts | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/std/prettier/ignore_test.ts b/std/prettier/ignore_test.ts deleted file mode 100644 index 019cddc0e..000000000 --- a/std/prettier/ignore_test.ts +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -import { test, runIfMain } from "../testing/mod.ts"; -import { assertEquals } from "../testing/asserts.ts"; -import { parse } from "./ignore.ts"; - -const testCases = [ - { - input: `# this is a comment -node_modules -`, - output: new Set(["node_modules"]) - }, - { - input: ` # invalid comment -`, - output: new Set([" # invalid comment"]) - }, - { - input: ` -node_modules -package.json -`, - output: new Set(["node_modules", "package.json"]) - }, - { - input: ` - node_modules - package.json -`, - output: new Set([" node_modules", " package.json"]) - }, - { - input: `*.orig -*.pyc -*.swp - -/.idea/ -/.vscode/ -gclient_config.py_entries -/gh-pages/ -/target/ - -# Files that help ensure VSCode can work but we don't want checked into the -# repo -/node_modules -/tsconfig.json - -# We use something stronger than lockfiles, we have all NPM modules stored in a -# git. We do not download from NPM during build. -# https://github.com/denoland/deno_third_party -yarn.lock -# yarn creates this in error. -tools/node_modules/ - `, - output: new Set([ - "*.orig", - "*.pyc", - "*.swp", - "/.idea/", - "/.vscode/", - "gclient_config.py_entries", - "/gh-pages/", - "/target/", - "/node_modules", - "/tsconfig.json", - "yarn.lock", - "tools/node_modules/" - ]) - } -]; - -test({ - name: "[encoding.ignore] basic", - fn(): void { - for (const { input, output } of testCases) { - assertEquals(parse(input), output); - } - } -}); - -runIfMain(import.meta); |