local d=script.Parent.Parent.Parent.Parent local i=d.Parent local C=require(i.Dev.JestGlobals)local Y=C.describe local r=C.expect local l=C.it local S=(require(script.Parent.Parent.Observable)).Observable Y("\079\098\115\101\114\118\097\098\108\101",function()l("\101\120\112\111\114\116\115 \079\098\115\101\114\118\097\098\108\101",function()(r(S)).toBeTruthy()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/utilities/observables/__tests__/Observable.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 Observable = require(script.Parent.Parent.Observable).Observable

-- ROBLOX deviation START: add at least a test
describe("Observable", function()
	it("exports Observable", function()
		expect(Observable).toBeTruthy()
	end)
end)
-- ROBLOX deviation END

-- ROBLOX deviation: tests don't apply / module is just re-exporting files
--[[Original tests
	describe("Observable", function()
		describe("subclassing by non-class constructor functions", function()
			it('simulating super(sub) with Observable.call(this, sub)', () => {
    		  function SubclassWithSuperCall<T>(sub: Subscriber<T>) {
    		    const self = Observable.call(this, sub) || this;
    		    self.sub = sub;
    		    return self;
    		  }
    		  return check(newify(SubclassWithSuperCall));
    		});

    		it('simulating super(sub) with Observable.apply(this, arguments)', () => {
    		  function SubclassWithSuperApplyArgs<T>(_sub: Subscriber<T>) {
    		    const self = Observable.apply(this, arguments) || this;
    		    self.sub = _sub;
    		    return self;
    		  }
    		  return check(newify(SubclassWithSuperApplyArgs));
    		});

    		it('simulating super(sub) with Observable.apply(this, [sub])', () => {
    		  function SubclassWithSuperApplyArray<T>(...args: [Subscriber<T>]) {
    		    const self = Observable.apply(this, args) || this;
    		    self.sub = args[0];
    		    return self;
    		  }
    		  return check(newify(SubclassWithSuperApplyArray));
    		});

		end)
	end)
]]

return {}
