← Back to team overview

launchpad-reviewers team mailing list archive

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

 

Ines Almeida has proposed merging ~ines-almeida/launchpad:fix-js-unittest-access-tokens-view into launchpad:master.

Commit message:
Fix js unit test in access tokens view

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~ines-almeida/launchpad/+git/launchpad/+merge/452933
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~ines-almeida/launchpad:fix-js-unittest-access-tokens-view into launchpad:master.
diff --git a/lib/lp/services/auth/javascript/tests/test_tokens.js b/lib/lp/services/auth/javascript/tests/test_tokens.js
index 347b3d3..f6970ef 100644
--- a/lib/lp/services/auth/javascript/tests/test_tokens.js
+++ b/lib/lp/services/auth/javascript/tests/test_tokens.js
@@ -122,7 +122,7 @@ YUI.add('lp.services.auth.tokens.test', function (Y) {
             var token_row = Y.one('#access-tokens-tbody tr');
             Y.Assert.isTrue(token_row.hasClass('yui3-lazr-even'));
             Y.ArrayAssert.itemsAreEqual(
-                ['Test description', 'repository:push', 'a moment ago',
+                ['Test description', '', 'repository:push', 'a moment ago',
                  '', 'Never', ''],
                 token_row.all('td').map(function (node) {
                     return node.get('text');
@@ -165,8 +165,8 @@ YUI.add('lp.services.auth.tokens.test', function (Y) {
             var token_row = Y.one('#access-tokens-tbody tr');
             Y.Assert.isTrue(token_row.hasClass('yui3-lazr-even'));
             Y.ArrayAssert.itemsAreEqual(
-                ['Test description', 'repository:build_status', 'a moment ago',
-                 '', '2021-01-01', ''],
+                ['Test description', '', 'repository:build_status',
+                'a moment ago', '', '2021-01-01', ''],
                 token_row.all('td').map(function (node) {
                     return node.get('text');
                 }));