1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-04 10:34:51 +02:00
video.js/test/unit/utils/fn.test.js

14 lines
271 B
JavaScript

import * as Fn from '../../../src/js/utils/fn.js';
q.module('fn');
test('should add context to a function', function(){
var newContext = { test: 'obj'};
var asdf = function(){
ok(this === newContext);
};
var fdsa = Fn.bind(newContext, asdf);
fdsa();
});