Skip to content

Commit

Permalink
Sort requires for test files
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptibell committed Jun 8, 2023
1 parent 155ae55 commit 42ab2da
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 14 deletions.
4 changes: 2 additions & 2 deletions aftman.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tools]
just = "readysetplay/[email protected]"
luau-lsp = "JohnnyMorganz/luau-lsp@1.15.0"
luau-lsp = "JohnnyMorganz/luau-lsp@1.20.0"
selene = "Kampfkarren/[email protected]"
stylua = "JohnnyMorganz/StyLua@0.16.0"
stylua = "JohnnyMorganz/StyLua@0.17.0"
7 changes: 3 additions & 4 deletions stylua.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
column_width = 100

line_endings = "Unix"

indent_type = "Tabs"
indent_width = 4

quote_style = "AutoPreferDouble"

call_parentheses = "Always"

[sort_requires]
enabled = true
2 changes: 1 addition & 1 deletion tests/net/serve/requests.luau
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local net = require("@lune/net")
local task = require("@lune/task")
local process = require("@lune/process")
local task = require("@lune/task")

local PORT = 8080
local URL = `http://127.0.0.1:{PORT}`
Expand Down
2 changes: 1 addition & 1 deletion tests/net/serve/websockets.luau
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local net = require("@lune/net")
local task = require("@lune/task")
local process = require("@lune/process")
local task = require("@lune/task")

local PORT = 8081
local URL = `http://127.0.0.1:{PORT}`
Expand Down
2 changes: 1 addition & 1 deletion tests/process/exit.luau
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local fs = require("@lune/fs")
local task = require("@lune/task")
local process = require("@lune/process")
local task = require("@lune/task")

local function assert(condition, err)
if not condition then
Expand Down
2 changes: 1 addition & 1 deletion tests/process/spawn.luau
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local task = require("@lune/task")
local process = require("@lune/process")
local task = require("@lune/task")

-- Spawning a child process should work with options

Expand Down
2 changes: 1 addition & 1 deletion tests/stdio/ewrite.luau
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local stdio = require("@lune/stdio")
local process = require("@lune/process")
local stdio = require("@lune/stdio")

stdio.ewrite("Hello, stderr!")

Expand Down
4 changes: 2 additions & 2 deletions tests/stdio/prompt.luau
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local task = require("@lune/task")
local stdio = require("@lune/stdio")
local process = require("@lune/process")
local stdio = require("@lune/stdio")
local task = require("@lune/task")

-- NOTE: This test is intentionally not included in the
-- automated tests suite since it requires user input
Expand Down
2 changes: 1 addition & 1 deletion tests/task/wait.luau
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local task = require("@lune/task")
local stdio = require("@lune/stdio")
local task = require("@lune/task")

-- Wait should be accurate down to at least 10ms

Expand Down

0 comments on commit 42ab2da

Please sign in to comment.