From 4aad13f10d0724d4b14bfd4ff91661ef858fa1d7 Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Thu, 14 Sep 2023 22:25:01 +0200 Subject: [PATCH] Revert "Add dprint tests" This reverts commit 67bfbab4aad0921db7b3202146a4db16cf04f8a5. --- test/formatter/dprint_spec.lua | 18 ------------------ test/setup.sh | 3 +-- 2 files changed, 1 insertion(+), 20 deletions(-) delete mode 100644 test/formatter/dprint_spec.lua diff --git a/test/formatter/dprint_spec.lua b/test/formatter/dprint_spec.lua deleted file mode 100644 index b2477a5..0000000 --- a/test/formatter/dprint_spec.lua +++ /dev/null @@ -1,18 +0,0 @@ -describe('dprint', function() - it('can format', function() - local ft = require('guard.filetype') - ft('typescriptreact'):fmt('dprint') - require('guard').setup() - - local formatted = require('test.formatter.helper').test_with('typescriptreact', { - [[ const randomNumber = Math.floor(]], - [[ Math.random() * 10]], - [[ ) + 1]], - [[alert(randomNumber)]], - }) - assert.are.same({ - [[const randomNumber = Math.floor(Math.random() * 10) + 1;]], - [[alert(randomNumber);]], - }, formatted) - end) -end) diff --git a/test/setup.sh b/test/setup.sh index f14b6ca..afc3c74 100644 --- a/test/setup.sh +++ b/test/setup.sh @@ -10,8 +10,7 @@ luarocks install luacheck & go install github.com/segmentio/golines@latest & pip -qqq install autopep8 black djhtml isort pylint yapf & npm install -g --silent \ - prettier @fsouza/prettierd sql-formatter shellcheck shfmt dprint & -dprint config add typescript & + prettier @fsouza/prettierd sql-formatter shellcheck shfmt & gem install -q rubocop & brew install \ swiftformat swift-format hadolint google-java-format pgformatter fnlfmt # Block, homebrew takes the longest time