local d=script.Parent.Parent.Parent.Parent local i=require(d.Dev.JestGlobals)local C=i.describe local Y=i.expect local r=i.it local l=require(script.Parent.Parent)C("\117\116\105\108\105\116\105\101\115\047\105\110\105\116",function()r("\115\104\111\117\108\100 \101\120\112\111\114\116 \114\101\108\101\118\097\110\116 \102\117\110\099\116\105\111\110\115 \102\114\111\109 \'\046\047\103\114\097\112\104\113\108\047\103\101\116\070\114\111\109\065\083\084\' \109\111\100\117\108\101",function()(Y(typeof(l.checkDocument))).toBe("\102\117\110\099\116\105\111\110");(Y(typeof(l.getOperationDefinition))).toBe("\102\117\110\099\116\105\111\110");(Y(typeof(l.getOperationName))).toBe("\102\117\110\099\116\105\111\110");(Y(typeof(l.getFragmentDefinitions))).toBe("\102\117\110\099\116\105\111\110");(Y(typeof(l.getQueryDefinition))).toBe("\102\117\110\099\116\105\111\110");(Y(typeof(l.getFragmentDefinition))).toBe("\102\117\110\099\116\105\111\110");(Y(typeof(l.getMainDefinition))).toBe("\102\117\110\099\116\105\111\110");(Y(typeof(l.getDefaultValues))).toBe("\102\117\110\099\116\105\111\110")end)r("\115\104\111\117\108\100 \101\120\112\111\114\116 \114\101\108\101\118\097\110\116 \102\117\110\099\116\105\111\110\115 \102\114\111\109 \'\046\047\103\114\097\112\104\113\108\047\115\116\111\114\101\085\116\105\108\115\' \109\111\100\117\108\101",function()(Y(typeof(l.makeReference))).toBe("\102\117\110\099\116\105\111\110");(Y(typeof(l.isDocumentNode))).toBe("\102\117\110\099\116\105\111\110");(Y(typeof(l.isReference))).toBe("\102\117\110\099\116\105\111\110");(Y(typeof(l.isField))).toBe("\102\117\110\099\116\105\111\110");(Y(typeof(l.isInlineFragment))).toBe("\102\117\110\099\116\105\111\110");(Y(typeof(l.valueToObjectRepresentation))).toBe("\102\117\110\099\116\105\111\110");(Y(typeof(l.storeKeyNameFromField))).toBe("\102\117\110\099\116\105\111\110");(Y(typeof(l.argumentsObjectFromField))).toBe("\102\117\110\099\116\105\111\110");(Y(typeof(l.resultKeyNameFromField))).toBe("\102\117\110\099\116\105\111\110");(Y(typeof(l.getStoreKeyName))).toBe("\116\097\098\108\101");(Y(typeof((getmetatable(l.getStoreKeyName)).__call))).toBe("\102\117\110\099\116\105\111\110")end)r("\115\104\111\117\108\100 \101\120\112\111\114\116 \114\101\108\101\118\097\110\116 \102\117\110\099\116\105\111\110\115 \102\114\111\109 \'\046\047\103\114\097\112\104\113\108\047\116\114\097\110\115\102\111\114\109\' \109\111\100\117\108\101",function()(Y(typeof(l.addTypenameToDocument))).toBe("\116\097\098\108\101");(Y(typeof((getmetatable(l.addTypenameToDocument)).__call))).toBe("\102\117\110\099\116\105\111\110");(Y(typeof(l.buildQueryFromSelectionSet))).toBe("\102\117\110\099\116\105\111\110");(Y(typeof(l.removeDirectivesFromDocument))).toBe("\102\117\110\099\116\105\111\110");(Y(typeof(l.removeConnectionDirectiveFromDocument))).toBe("\102\117\110\099\116\105\111\110");(Y(typeof(l.removeArgumentsFromDocument))).toBe("\102\117\110\099\116\105\111\110");(Y(typeof(l.removeFragmentSpreadFromDocument))).toBe("\102\117\110\099\116\105\111\110");(Y(typeof(l.removeClientSetsFromDocument))).toBe("\102\117\110\099\116\105\111\110")end)end)return{}
--[[
 * Copyright (c) Roblox Corporation
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
]]
-- ROBLOX no upstream

local rootWorkspace = script.Parent.Parent.Parent.Parent

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

local utilitiesModule = require(script.Parent.Parent)

describe("utilities/init", function()
	it("should export relevant functions from './graphql/getFromAST' module", function()
		expect(typeof(utilitiesModule.checkDocument)).toBe("function")
		expect(typeof(utilitiesModule.getOperationDefinition)).toBe("function")
		expect(typeof(utilitiesModule.getOperationName)).toBe("function")
		expect(typeof(utilitiesModule.getFragmentDefinitions)).toBe("function")
		expect(typeof(utilitiesModule.getQueryDefinition)).toBe("function")
		expect(typeof(utilitiesModule.getFragmentDefinition)).toBe("function")
		expect(typeof(utilitiesModule.getMainDefinition)).toBe("function")
		expect(typeof(utilitiesModule.getDefaultValues)).toBe("function")
	end)

	it("should export relevant functions from './graphql/storeUtils' module", function()
		expect(typeof(utilitiesModule.makeReference)).toBe("function")
		expect(typeof(utilitiesModule.isDocumentNode)).toBe("function")
		expect(typeof(utilitiesModule.isReference)).toBe("function")
		expect(typeof(utilitiesModule.isField)).toBe("function")
		expect(typeof(utilitiesModule.isInlineFragment)).toBe("function")
		expect(typeof(utilitiesModule.valueToObjectRepresentation)).toBe("function")
		expect(typeof(utilitiesModule.storeKeyNameFromField)).toBe("function")
		expect(typeof(utilitiesModule.argumentsObjectFromField)).toBe("function")
		expect(typeof(utilitiesModule.resultKeyNameFromField)).toBe("function")
		expect(typeof(utilitiesModule.getStoreKeyName)).toBe("table")
		expect(typeof(getmetatable(utilitiesModule.getStoreKeyName).__call)).toBe("function")
	end)

	it("should export relevant functions from './graphql/transform' module", function()
		expect(typeof(utilitiesModule.addTypenameToDocument)).toBe("table")
		expect(typeof(getmetatable(utilitiesModule.addTypenameToDocument).__call)).toBe("function")
		expect(typeof(utilitiesModule.buildQueryFromSelectionSet)).toBe("function")
		expect(typeof(utilitiesModule.removeDirectivesFromDocument)).toBe("function")
		expect(typeof(utilitiesModule.removeConnectionDirectiveFromDocument)).toBe("function")
		expect(typeof(utilitiesModule.removeArgumentsFromDocument)).toBe("function")
		expect(typeof(utilitiesModule.removeFragmentSpreadFromDocument)).toBe("function")
		expect(typeof(utilitiesModule.removeClientSetsFromDocument)).toBe("function")
	end)
end)

return {}
