local H=script.Parent.Parent.Parent.Parent local a=H.Parent local E=require(a.Dev.JestGlobals)local O=E.describe local c=E.expect local t=E.it local V=require(script.Parent.Parent.entityStore)local Y=V.EntityStore local M=V.EntityStore_Root local F=(require(script.Parent.helpers)).defaultNormalizedCacheFactory O("\100\101\102\097\117\108\116\078\111\114\109\097\108\105\122\101\100\067\097\099\104\101\070\097\099\116\111\114\121",function()t("\115\104\111\117\108\100 \114\101\116\117\114\110 \097\110 \069\110\116\105\116\121\083\116\111\114\101",function()local H=F();(c(H)).toBeInstanceOf(Y);(c(H)).toBeInstanceOf(M)end)end)return{}
--[[
 * Copyright (c) 2021 Apollo Graph, Inc. (Formerly Meteor Development Group, Inc.)
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
]]
-- ROBLOX upstream: https://github.com/apollographql/apollo-client/blob/v3.4.2/src/cache/inmemory/__tests__/helpers.ts
local srcWorkspace = script.Parent.Parent.Parent.Parent
local rootWorkspace = srcWorkspace.Parent

local JestGlobals = require(rootWorkspace.Dev.JestGlobals)
local describe = JestGlobals.describe
local expect = JestGlobals.expect
local it = JestGlobals.it

local entityStoreModule = require(script.Parent.Parent.entityStore)
local EntityStore = entityStoreModule.EntityStore
local EntityStore_Root = entityStoreModule.EntityStore_Root

local defaultNormalizedCacheFactory = require(script.Parent.helpers).defaultNormalizedCacheFactory

describe("defaultNormalizedCacheFactory", function()
	it("should return an EntityStore", function()
		local store = defaultNormalizedCacheFactory()
		expect(store).toBeInstanceOf(EntityStore)
		expect(store).toBeInstanceOf(EntityStore_Root)
	end)
end)

return {}
