local K=require(script.Parent.Quest)local M=require(script.Parent.QuestObjective)local D=M:Extend("\084\101\115\116\079\098\106\101\099\116\105\118\101")function D.constructor(D,K)M:super(D,K,"\084\101\115\116 \079\098\106\101\099\116\105\118\101")end return function()it("\115\104\111\117\108\100 \104\097\110\100\108\101 \097\100\100\105\110\103 \113\117\101\115\116 \111\098\106\101\099\116\105\118\101\115",function()local M=K.new("\113\117\101\115\116-\111\098\106-\111\110\101","\081\117\101\115\116 \079\098\106\101\099\116\105\118\101\115 \049")M:AddObjective(D.new(1))local b=M:GetObjectives()local a=b[1];(expect(a)).to.be.ok();(expect(a:GetStage())).to.equal(1);(expect(a:GetDescription())).to.equal("\084\101\115\116 \079\098\106\101\099\116\105\118\101")end)end
local Quest = require(script.Parent.Quest)
local QuestObjective = require(script.Parent.QuestObjective)

local TestObjective = QuestObjective:Extend("TestObjective")
function TestObjective:constructor(stageId)
	QuestObjective:super(self, stageId, "Test Objective")
end

return function()
	it(
		"should handle adding quest objectives",
		function()
			local myQuest = Quest.new("quest-obj-one", "Quest Objectives 1");
			myQuest:AddObjective(TestObjective.new(1))

			local objs = myQuest:GetObjectives()
			local firstObj = objs[1]
			expect(firstObj).to.be.ok()
			expect(firstObj:GetStage()).to.equal(1)
			expect(firstObj:GetDescription()).to.equal("Test Objective")
		end
	)
end
