mirror of
https://github.com/danbulant/node-x11
synced 2026-06-14 04:01:10 +00:00
23 lines
545 B
JavaScript
23 lines
545 B
JavaScript
var x11 = require('../lib/x11');
|
|
//var sinon = require('sinon');
|
|
var should = require('should');
|
|
|
|
describe("Client", function() {
|
|
|
|
beforeEach(function() {
|
|
});
|
|
|
|
afterEach(function() {
|
|
});
|
|
|
|
it("calls first createClient parameter with display object", function(done) {
|
|
var client = x11.createClient(function(display) {
|
|
should.exist(display);
|
|
should.exist(display.screen);
|
|
should.exist(display.screen[0]);
|
|
should.exist(display.screen[0].root);
|
|
should.exist(display.major);
|
|
done();
|
|
});
|
|
});
|
|
});
|