21 lines
558 B
TypeScript
21 lines
558 B
TypeScript
/**
|
|
* Copyright (c) 2017 The xterm.js authors. All rights reserved.
|
|
* @license MIT
|
|
*/
|
|
|
|
import { assert } from 'chai';
|
|
|
|
import * as zmodem from './zmodem';
|
|
|
|
class MockTerminal {}
|
|
|
|
describe('zmodem addon', () => {
|
|
describe('apply', () => {
|
|
it('should do register the `zmodemAttach` method and `zmodemBrowser` attribute', () => {
|
|
zmodem.apply(<any>MockTerminal);
|
|
assert.equal(typeof (<any>MockTerminal).prototype.zmodemAttach, 'function');
|
|
assert.equal(typeof (<any>MockTerminal).prototype.zmodemBrowser, 'object');
|
|
});
|
|
});
|
|
});
|