Merge ~ines-almeida/launchpad:fix-js-unittest-access-tokens-view into launchpad:master

Proposed by Ines Almeida
Status: Merged
Approved by: Ines Almeida
Approved revision: 5919212f1ab9a5eb2f2fda1f5e05c7f39cafd302
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~ines-almeida/launchpad:fix-js-unittest-access-tokens-view
Merge into: launchpad:master
Diff against target: 24 lines (+3/-3)
1 file modified
lib/lp/services/auth/javascript/tests/test_tokens.js (+3/-3)
Reviewer Review Type Date Requested Status
Colin Watson (community) Approve
Review via email: mp+452933@code.launchpad.net

Commit message

Fix js unit test in access tokens view

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/lib/lp/services/auth/javascript/tests/test_tokens.js b/lib/lp/services/auth/javascript/tests/test_tokens.js
2index 347b3d3..f6970ef 100644
3--- a/lib/lp/services/auth/javascript/tests/test_tokens.js
4+++ b/lib/lp/services/auth/javascript/tests/test_tokens.js
5@@ -122,7 +122,7 @@ YUI.add('lp.services.auth.tokens.test', function (Y) {
6 var token_row = Y.one('#access-tokens-tbody tr');
7 Y.Assert.isTrue(token_row.hasClass('yui3-lazr-even'));
8 Y.ArrayAssert.itemsAreEqual(
9- ['Test description', 'repository:push', 'a moment ago',
10+ ['Test description', '', 'repository:push', 'a moment ago',
11 '', 'Never', ''],
12 token_row.all('td').map(function (node) {
13 return node.get('text');
14@@ -165,8 +165,8 @@ YUI.add('lp.services.auth.tokens.test', function (Y) {
15 var token_row = Y.one('#access-tokens-tbody tr');
16 Y.Assert.isTrue(token_row.hasClass('yui3-lazr-even'));
17 Y.ArrayAssert.itemsAreEqual(
18- ['Test description', 'repository:build_status', 'a moment ago',
19- '', '2021-01-01', ''],
20+ ['Test description', '', 'repository:build_status',
21+ 'a moment ago', '', '2021-01-01', ''],
22 token_row.all('td').map(function (node) {
23 return node.get('text');
24 }));

Subscribers

People subscribed via source and target branches

to status/vote changes: