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
|
|
@ -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"
|
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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]: () -> () }
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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 graph = require(script.Parent.graph)
|
||||||
local set_effect = graph.set_effect
|
local set_effect = graph.set_effect
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue