Commit aeacf9f3 authored by Robert Knight's avatar Robert Knight

Reformat code with Prettier v2.1.0

This changed formatting of integer values as object keys.
parent 432faf4b
......@@ -194,7 +194,7 @@ describe('sidebar/store/modules/selection', () => {
const selection = store.threadState().selection;
assert.deepEqual(selection.expanded, { '3': true, '4': false });
assert.deepEqual(selection.expanded, { 3: true, 4: false });
assert.deepEqual(selection.selected, ['1', '2']);
});
......
......@@ -276,14 +276,14 @@ describe('sidebar/util/build-thread', function () {
it('expands threads which have been explicitly expanded', function () {
const thread = buildThread(SIMPLE_FIXTURE, {
expanded: { '1': true },
expanded: { 1: true },
});
assert.isFalse(thread.children[0].collapsed);
});
it('collapses replies which have been explicitly collapsed', function () {
const thread = buildThread(SIMPLE_FIXTURE, {
expanded: { '3': false },
expanded: { 3: false },
});
assert.isTrue(thread.children[0].children[0].collapsed);
});
......
......@@ -28,8 +28,8 @@ describe('sidebar/util/collections', () => {
const myObj = {
yes: true,
no: false,
'1': true,
'0': false,
1: true,
0: false,
hooray: true,
};
assert.sameMembers(collectionsUtil.trueKeys(myObj), [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment