mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Update mocks
This commit is contained in:
parent
a4f59ee62b
commit
7e5102c314
13 changed files with 13 additions and 14 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
local warn = warn
|
||||
|
||||
if not game then
|
||||
script = require "test/wrap-require"
|
||||
script = require "test/relative-string"
|
||||
warn = print
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -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]: () -> () }
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
if not game then script = require "test/wrap-require" end
|
||||
if not game then script = require "test/relative-string" end
|
||||
|
||||
--[[
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue