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. # To add a new tool, add an entry to this table.
[tools] [tools]
rojo = "rojo-rbx/rojo@7.2.1" rojo = "rojo-rbx/rojo@7.3.0"
# rojo = "rojo-rbx/rojo@6.2.0"

View file

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

View file

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

View file

@ -2,7 +2,7 @@ local Instance = Instance
local typeof = typeof local typeof = typeof
if not game then if not game then
script = require "test/wrap-require" script = require "test/relative-string"
Instance = require("test/mock").Instance Instance = require("test/mock").Instance
typeof = require("test/mock").typeof typeof = require("test/mock").typeof
end 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 graph = require(script.Parent.graph)
local create = graph.create 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 throw = require(script.Parent.throw)
local flags = require(script.Parent.flags) local flags = require(script.Parent.flags)

View file

@ -3,7 +3,7 @@
-- v0.1.0 -- 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 create = require(script.create)
local source = require(script.source) 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 throw = require(script.Parent.throw)
local flags = require(script.Parent.flags) 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) local graph = require(script.Parent.graph)
type Node<T> = graph.Node<T> 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 graph = require(script.Parent.graph)
local set_effect = graph.set_effect local set_effect = graph.set_effect