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-05 11:37:12 -04:00

15 lines
318 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() {
const newContext = { test: 'obj'};
const asdf = function() {
QUnit.ok(this === newContext);
};
const fdsa = Fn.bind(newContext, asdf);
fdsa();
});