Skip to content

Commit b9ca2b0

Browse files
committed
more tests
1 parent 691b02b commit b9ca2b0

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
local entity = world:spawn()
2-
local type = world:get_type_by_name('TestComponent')
2+
local type = _get_mock_type()
33

44
assert(world:has_component(entity, type) == false, "Entity should not have component")
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
local component = world:get_type_by_name("ResourceWithDefault")
2+
assert(world:has_resource(component) == true, "Resource was not found")
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
local component = world:get_type_by_name("TestResource")
2+
assert(world:has_resource(component) == true, "Resource was not found")
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
local type = _get_mock_type()
2+
assert(world:has_resource(type) == false, "Resource should not exist")

0 commit comments

Comments
 (0)