From 36b3c86ac94e7a671d650c203379672ae61a8a82 Mon Sep 17 00:00:00 2001 From: Tobie Langel Date: Sat, 3 Feb 2024 01:57:23 +0100 Subject: [PATCH] Fix tests --- test/models/branch.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/models/branch.js b/test/models/branch.js index 5971151..65a0459 100644 --- a/test/models/branch.js +++ b/test/models/branch.js @@ -141,7 +141,7 @@ suite("Branch model", function() { type: "bikeshed", src_file: "index.bs" }; - assert.equal(h.getUrl(h.urlOptions()), BIKESHED_URL + "index.bs"); + assert.equal(h.getUrl(h.urlOptions()).url, BIKESHED_URL + "index.bs"); }); test('Test getUrl with non standard src file name', function() { @@ -150,7 +150,7 @@ suite("Branch model", function() { src_file: "url.bs", type: "bikeshed" }; - assert.equal(h.getUrl(h.urlOptions()), BIKESHED_URL + "url.bs"); + assert.equal(h.getUrl(h.urlOptions()).url, BIKESHED_URL + "url.bs"); }); test('Test getUrl with specific status', function() { @@ -160,7 +160,7 @@ suite("Branch model", function() { type: "bikeshed", params: { "md-status": "REC" } }; - assert.equal(h.getUrl(h.urlOptions()), BIKESHED_URL + "index.bs&md-status=REC"); + assert.equal(h.getUrl(h.urlOptions()).url, BIKESHED_URL + "index.bs&md-status=REC"); }); test('Test getUrl using templating', function() { @@ -173,7 +173,7 @@ suite("Branch model", function() { "md-title": "{{config.title}} {{owner}}/{{repo}}/{{branch}}#{{pull_request.number}}-{{short_sha}}" } }; - assert.equal(h.getUrl(h.urlOptions()), BIKESHED_URL + "index.bs&md-title=FOO%20BAR%20tobie%2Fwebidl%2Finterface-objs%23283-7dfd134"); + assert.equal(h.getUrl(h.urlOptions()).url, BIKESHED_URL + "index.bs&md-title=FOO%20BAR%20tobie%2Fwebidl%2Finterface-objs%23283-7dfd134"); }); test('Test getUrl templating gracefully handles non strings', function() { @@ -185,7 +185,7 @@ suite("Branch model", function() { "force": 1 } }; - assert.equal(h.getUrl(h.urlOptions()), BIKESHED_URL + "index.bs&force=1"); + assert.equal(h.getUrl(h.urlOptions()).url, BIKESHED_URL + "index.bs&force=1"); }); test('Test urlOptions', function() {