diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 00000000..28a642d5 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,7 @@ +Closes (ISSUES HERE). + +*Put your pull request body here!* + +Checklist before submitting: +* [ ] Added/updated relevant tests +* [ ] Added/updated documentation \ No newline at end of file diff --git a/foreman.toml b/foreman.toml index 03280657..6a3e874a 100644 --- a/foreman.toml +++ b/foreman.toml @@ -6,4 +6,4 @@ stylua = { source = "Roblox/JohnnyMorganz-StyLua", version = "=0.18.1" } testez = { source = "roblox/testez", version = "0.3.2" } rbx-aged-cli = { source = "Roblox/rbx-aged-tool", version = "=5.7.9" } lute = { github = "luau-lang/lute", version = "=0.1.0-nightly.20260307" } -wally = { github = "UpliftGames/wally", version = "=0.3.2"} \ No newline at end of file +wally = { github = "UpliftGames/wally", version = "=0.3.2"} diff --git a/modules/scheduler/src/__tests__/SchedulerNoDOM.spec.lua b/modules/scheduler/src/__tests__/SchedulerNoDOM.spec.lua index 53eeca8b..21b1410d 100644 --- a/modules/scheduler/src/__tests__/SchedulerNoDOM.spec.lua +++ b/modules/scheduler/src/__tests__/SchedulerNoDOM.spec.lua @@ -69,6 +69,17 @@ it("executes callbacks in order of priority", function() scheduleCallback(UserBlockingPriority, function() table.insert(log, "D") end) + scheduleCallback(UserBlockingPriority, function() + table.insert(log, "C") + end) + scheduleCallback(UserBlockingPriority, function() + table.insert(log, "D") + end) + + jestExpect(log).toEqual({}) + jest.runAllTimers() + jestExpect(log).toEqual({ "C", "D", "A", "B" }) +end) jestExpect(log).toEqual({}) jest.runAllTimers()