Implement test

This commit is contained in:
Paris
2016-06-14 00:05:47 +03:00
parent 57300f5159
commit 00f380a75c
2 changed files with 11 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
var assert = require('chai').assert;
var Terminal = require('../../src/xterm');
describe('xterm.js addons', function() {
it('should load addons with Terminal.loadAddon', function () {
Terminal.loadAddon('attach');
// Test that function was loaded successfully
assert.equal(typeof Terminal.prototype.attach, 'function');
});
});
+1 -1
View File
@@ -79,7 +79,7 @@ describe('xterm.js', function() {
xterm.handler = function() {};
xterm.showCursor = function() {};
xterm.clearSelection = function() {};
})
});
describe('On Mac OS', function() {
beforeEach(function() {