Placeholders for core classes

This commit is contained in:
deadprogram 2013-10-19 16:10:24 -07:00
parent e4540ead46
commit 13f3b6b1a8
8 changed files with 88 additions and 0 deletions

12
src/adaptor.coffee Normal file
View File

@ -0,0 +1,12 @@
###
* adaptor
* cylonjs.com
*
* Copyright (c) 2013 The Hybrid Group
* Licensed under the Apache 2.0 license.
###
'use strict';
exports = module.exports = class Adaptor
constructor: (@name) ->

12
src/connection.coffee Normal file
View File

@ -0,0 +1,12 @@
###
* connection
* cylonjs.com
*
* Copyright (c) 2013 The Hybrid Group
* Licensed under the Apache 2.0 license.
###
'use strict';
exports = module.exports = class Connection
constructor: (@name) ->

12
src/device.coffee Normal file
View File

@ -0,0 +1,12 @@
###
* device
* cylonjs.com
*
* Copyright (c) 2013 The Hybrid Group
* Licensed under the Apache 2.0 license.
###
'use strict';
exports = module.exports = class Device
constructor: (@name) ->

12
src/driver.coffee Normal file
View File

@ -0,0 +1,12 @@
###
* driver
* cylonjs.com
*
* Copyright (c) 2013 The Hybrid Group
* Licensed under the Apache 2.0 license.
###
'use strict';
exports = module.exports = class Driver
constructor: (@name) ->

View File

@ -0,0 +1,10 @@
'use strict';
Adaptor = source("adaptor")
describe "basic tests", ->
r = new Adaptor("irobot")
it "adaptor should have a name", ->
r.should.have.keys 'name'
r.name.should.be.equal 'irobot'

View File

@ -0,0 +1,10 @@
'use strict';
Connection = source("connection")
describe "basic tests", ->
r = new Connection("irobot")
it "connection should have a name", ->
r.should.have.keys 'name'
r.name.should.be.equal 'irobot'

View File

@ -0,0 +1,10 @@
'use strict';
Device = source("device")
describe "basic tests", ->
r = new Device("irobot")
it "device should have a name", ->
r.should.have.keys 'name'
r.name.should.be.equal 'irobot'

View File

@ -0,0 +1,10 @@
'use strict';
Driver = source("driver")
describe "basic tests", ->
r = new Driver("irobot")
it "driver should have a name", ->
r.should.have.keys 'name'
r.name.should.be.equal 'irobot'