From 41a18b696e5ebff3c01c6ef114332a2af3b841a8 Mon Sep 17 00:00:00 2001 From: Brock Allen Date: Wed, 17 Feb 2021 10:51:44 -0500 Subject: [PATCH] fix test --- test/unit/MetadataService.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/MetadataService.spec.js b/test/unit/MetadataService.spec.js index 882a19ff..fc9c432f 100644 --- a/test/unit/MetadataService.spec.js +++ b/test/unit/MetadataService.spec.js @@ -93,12 +93,12 @@ describe("MetadataService", function() { it("should return metadata from json call", function(done) { settings.metadataUrl = "http://sts/metadata"; - stubJsonService.result = Promise.resolve("test"); + stubJsonService.result = Promise.resolve({"test":"data"}); let p = subject.getMetadata(); p.then(result => { - result.should.equal("test"); + result.should.deep.equal({"test":"data"}); done(); }); }); @@ -115,7 +115,7 @@ describe("MetadataService", function() { }); }); - it.only("should merge metadata from seed", function(done) { + it("should merge metadata from seed", function(done) { settings.metadataUrl = "http://sts/metadata"; settings.metadataSeed = {test1:"one"}; stubJsonService.result = Promise.resolve({test2:"two"});