Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tobie committed Feb 3, 2024
1 parent 42ae2b6 commit 36b3c86
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/models/branch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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() {
Expand All @@ -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() {
Expand All @@ -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() {
Expand All @@ -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() {
Expand Down

0 comments on commit 36b3c86

Please sign in to comment.