Skip to content

Commit

Permalink
Updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
shinyichen committed Apr 8, 2021
1 parent b4497d5 commit 56cdb28
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/js/widgets/query_info/query_info_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<label for="library-select">to an <span class="s-text-bold">existing library:</span></label>
<select id="library-select" name="library-select" class="form-control input-sm s-library-select" aria-label="select existing library">
{{#each libraries}}
<option value="{{this.id}}" {{#compare id ../selectedLibrary}} selected="true" {{/compare}}>{{this.name}}</option>
<option value="{{this.id}}" {{#compare id ../selectedLibrary}} selected="true" {{/compare}}>{{this.name}}{{#compare permission "owner" operator="!=="}} ({{this.owner}}){{/compare}}</option>
{{/each}}
</select>
<button class="btn btn-sm btn-primary-faded submit-add-to-library">submit</button>
Expand Down
2 changes: 1 addition & 1 deletion src/js/wraps/abstract_page_library_add/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<label for="#library-select">add to an existing library:</label>
<select id="library-select" name="library-select" class="form-control input-sm s-library-select" aria-label="select existing library">
{{#each libraries}}
<option value="{{this.id}}" {{#compare id ../selectedLibrary}} selected="true" {{/compare}}>{{this.name}}</option>
<option value="{{this.id}}" {{#compare id ../selectedLibrary}} selected="true" {{/compare}}>{{this.name}}{{#compare permission "owner" operator="!=="}} ({{this.owner}}){{/compare}}</option>
{{/each}}
</select>
<button class="btn btn-sm btn-primary-faded submit-add-to-library">submit</button>
Expand Down
4 changes: 2 additions & 2 deletions test/mocha/js/widgets/libraries_all.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,11 @@ define([

if (entry.match('7:57pm')) {
expect(entry).to.eql(
'1 Aliens Among Us Are you one of them? 300 owner Jun 11 2015, 7:57pm'
'1 Aliens Among Us Aliens Among Us Are you one of them? 300 Me owner Jun 11 2015, 7:57pm'
);
} else {
expect(entry).to.eql(
'1 Aliens Among Us Are you one of them? 300 owner Jun 11 2015, 3:57pm'
'1 Aliens Among Us Aliens Among Us Are you one of them? 300 Me owner Jun 11 2015, 3:57pm'
);
}
});
Expand Down
2 changes: 1 addition & 1 deletion test/mocha/js/widgets/query_info_widget.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ define([
expect($("#test #all-vs-selected")[0].options[1].value).to.eql("all");

expect($("#test #library-select")[0].options[1].value).to.eql("1");
expect($("#test #library-select")[0].options[1].textContent).to.eql("Stars? Stars!!!");
expect($("#test #library-select")[0].options[1].textContent).to.eql("Stars? Stars!!! ()");


$("#test .submit-add-to-library").click();
Expand Down

0 comments on commit 56cdb28

Please sign in to comment.