open-consul/ui-v2/tests/unit/mixins/with-resizing-test.js
John Cowen c619223367
UI: Fixes healthy node listing resize on large portrait screens (#4564)
1. Split the resizing functionality of into a separate mixin to be
shared across components
2. Add basic integration tests to prove that everything is getting
called through out the lifetime of the app. I decided against unit
testing as there isn't really any isolated logic to be tested, more
checking that things are being called in the correct order etc i.e. the
integration is correct.

Adds assertion to with-resizing so its obvious to override `resize`
2018-08-24 12:35:52 +02:00

13 lines
396 B
JavaScript

import EmberObject from '@ember/object';
import WithResizingMixin from 'consul-ui/mixins/with-resizing';
import { module, test } from 'qunit';
module('Unit | Mixin | with resizing');
// Replace this with your real tests.
test('it works', function(assert) {
let WithResizingObject = EmberObject.extend(WithResizingMixin);
let subject = WithResizingObject.create();
assert.ok(subject);
});