local U=require("\064\112\107\103\047\064\106\115\100\111\116\108\117\097\047\106\101\115\116-\103\108\111\098\097\108\115")local S=U.expect local Z=U.it local q=require("\046\046\047\046\046\047\084\121\112\101\046\114\111\098\108\111\120\046\108\117\097\117")local i=require("\046\046\047\069\118\101\110\116")Z("\115\104\111\117\108\100 \121\105\101\108\100 \101\118\101\110\116 \111\098\106\101\099\116\115 \119\104\101\110 \105\110\100\101\120\101\100",function()(S(q.of(i.MouseButton1Click))).toBe(q.HostEvent);(S(q.of(i.Touched))).toBe(q.HostEvent)end)Z("\115\104\111\117\108\100 \121\105\101\108\100 \116\104\101 \115\097\109\101 \111\098\106\101\099\116 \119\104\101\110 \105\110\100\101\120\101\100 \097\103\097\105\110",function()local U=i.MouseButton1Click local Z=i.MouseButton1Click local q=i.Touched;(S(U)).toBe(Z);(S(U)).never.toBe(q)end)
--[[
	* Copyright (c) Roblox Corporation. All rights reserved.
	* Licensed under the MIT License (the "License");
	* you may not use this file except in compliance with the License.
	* You may obtain a copy of the License at
	*
	*     https://opensource.org/licenses/MIT
	*
	* Unless required by applicable law or agreed to in writing, software
	* distributed under the License is distributed on an "AS IS" BASIS,
	* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
	* See the License for the specific language governing permissions and
	* limitations under the License.
]]

local JestGlobals = require("@pkg/@jsdotlua/jest-globals")
local jestExpect = JestGlobals.expect
local it = JestGlobals.it

local Type = require("../../Type.roblox.luau")
local Event = require("../Event")

it("should yield event objects when indexed", function()
	jestExpect(Type.of(Event.MouseButton1Click)).toBe(Type.HostEvent)
	jestExpect(Type.of(Event.Touched)).toBe(Type.HostEvent)
end)

it("should yield the same object when indexed again", function()
	local a = Event.MouseButton1Click
	local b = Event.MouseButton1Click
	local c = Event.Touched

	jestExpect(a).toBe(b)
	jestExpect(a).never.toBe(c)
end)
