1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-14 11:23:30 +02:00
video.js/test/unit/utils/fn.test.js
2016-08-12 13:51:31 -04:00

15 lines
325 B
JavaScript

/* eslint-env qunit */
import * as Fn from '../../../src/js/utils/fn.js';
QUnit.module('fn');
QUnit.test('should add context to a function', function(assert) {
const newContext = { test: 'obj'};
const asdf = function() {
assert.ok(this === newContext);
};
const fdsa = Fn.bind(newContext, asdf);
fdsa();
});