Update mocks

This commit is contained in:
Aaron Smith 2023-08-10 15:43:27 +01:00
parent a4f59ee62b
commit 7e5102c314
13 changed files with 13 additions and 14 deletions

View file

@ -3,5 +3,4 @@
# To add a new tool, add an entry to this table.
[tools]
rojo = "rojo-rbx/rojo@7.2.1"
# rojo = "rojo-rbx/rojo@6.2.0"
rojo = "rojo-rbx/rojo@7.3.0"

View file

@ -1,8 +1,8 @@
local typeof = typeof
if not game then
script = require "test/wrap-require"
typeof = require "test/mock".typeof :: any
script = require "test/relative-string"
typeof = require "test/mock".typeof
end
local graph = require(script.Parent.graph)

View file

@ -1,7 +1,7 @@
local warn = warn
if not game then
script = require "test/wrap-require"
script = require "test/relative-string"
warn = print
end

View file

@ -1,4 +1,4 @@
if not game then script = require "test/wrap-require" end
if not game then script = require "test/relative-string" end
-- todo: verify correct behavior in non-standard usage
local cleanup_callbacks = {} :: { [string]: () -> () }

View file

@ -2,7 +2,7 @@ local Instance = Instance
local typeof = typeof
if not game then
script = require "test/wrap-require"
script = require "test/relative-string"
Instance = require("test/mock").Instance
typeof = require("test/mock").typeof
end

View file

@ -1,4 +1,4 @@
if not game then script = require "test/wrap-require" end
if not game then script = require "test/relative-string" end
local graph = require(script.Parent.graph)
local create = graph.create

View file

@ -1,4 +1,4 @@
if not game then script = require "test/wrap-require" end
if not game then script = require "test/relative-string" end
local throw = require(script.Parent.throw)
local flags = require(script.Parent.flags)

View file

@ -3,7 +3,7 @@
-- v0.1.0
--------------------------------------------------------------------------------
if not game then script = require "test/wrap-require" end
if not game then script = require "test/relative-string" end
local create = require(script.create)
local source = require(script.source)

View file

@ -1,4 +1,4 @@
if not game then script = require "test/wrap-require" end
if not game then script = require "test/relative-string" end
local throw = require(script.Parent.throw)
local flags = require(script.Parent.flags)

View file

@ -1,4 +1,4 @@
if not game then script = require "test/wrap-require" end
if not game then script = require "test/relative-string" end
local graph = require(script.Parent.graph)
type Node<T> = graph.Node<T>

View file

@ -1,4 +1,4 @@
if not game then script = require "test/wrap-require" end
if not game then script = require "test/relative-string" end
--[[

View file

@ -1,4 +1,4 @@
if not game then script = require "test/wrap-require" end
if not game then script = require "test/relative-string" end
local graph = require(script.Parent.graph)
local set_effect = graph.set_effect