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"});