open-consul/ui-v2/tests/unit/utils/qsa-factory-test.js
John Cowen cfc05fb413 Make sure didAppear and therefore resize is called on change
Tables need to calculate their sizing depending on other things in the
DOM. When a table is in a tab panel, some of these things aren't visible
and therefore some values are zero during `didInsertElement`.

This commit ensures that the resize calc of the table is performed when
it's parent tab is clicked (and therefore when the table 'appears')
2018-06-12 11:24:36 +01:00

11 lines
262 B
JavaScript

import qsaFactory from 'consul-ui/utils/qsa-factory';
import { module, test } from 'qunit';
module('Unit | Utility | qsa factory');
// Replace this with your real tests.
test('it works', function(assert) {
let result = qsaFactory();
assert.ok(result);
});