mirror of
https://github.com/videojs/video.js.git
synced 2024-12-16 11:37:29 +02:00
14 lines
271 B
JavaScript
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();
|
|
});
|