You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/ui-v2/tests/unit/utils/makeAttrable-test.js

14 lines
446 B

import { module } from 'ember-qunit';
import test from 'ember-sinon-qunit/test-support/test';
import makeAttrable from 'consul-ui/utils/makeAttrable';
module('Unit | Utils | makeAttrable', {});
test('it adds a `attr` method, which returns the value of the property', function(assert) {
const obj = {
prop: true,
};
const actual = makeAttrable(obj);
assert.equal(typeof actual.attr, 'function');
assert.ok(actual.attr('prop'));
});