From 13f3b6b1a812bf4c9e2ab4be68c8b0ac4bbe5bf5 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Sat, 19 Oct 2013 16:10:24 -0700 Subject: [PATCH] Placeholders for core classes --- src/adaptor.coffee | 12 ++++++++++++ src/connection.coffee | 12 ++++++++++++ src/device.coffee | 12 ++++++++++++ src/driver.coffee | 12 ++++++++++++ test/src/specs/adaptor.spec.coffee | 10 ++++++++++ test/src/specs/connection.spec.coffee | 10 ++++++++++ test/src/specs/device.spec.coffee | 10 ++++++++++ test/src/specs/driver.spec.coffee | 10 ++++++++++ 8 files changed, 88 insertions(+) create mode 100644 src/adaptor.coffee create mode 100644 src/connection.coffee create mode 100644 src/device.coffee create mode 100644 src/driver.coffee create mode 100644 test/src/specs/adaptor.spec.coffee create mode 100644 test/src/specs/connection.spec.coffee create mode 100644 test/src/specs/device.spec.coffee create mode 100644 test/src/specs/driver.spec.coffee diff --git a/src/adaptor.coffee b/src/adaptor.coffee new file mode 100644 index 0000000..7d0c291 --- /dev/null +++ b/src/adaptor.coffee @@ -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) -> diff --git a/src/connection.coffee b/src/connection.coffee new file mode 100644 index 0000000..96590b7 --- /dev/null +++ b/src/connection.coffee @@ -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) -> diff --git a/src/device.coffee b/src/device.coffee new file mode 100644 index 0000000..a91a345 --- /dev/null +++ b/src/device.coffee @@ -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) -> diff --git a/src/driver.coffee b/src/driver.coffee new file mode 100644 index 0000000..806d72e --- /dev/null +++ b/src/driver.coffee @@ -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) -> diff --git a/test/src/specs/adaptor.spec.coffee b/test/src/specs/adaptor.spec.coffee new file mode 100644 index 0000000..8970e4f --- /dev/null +++ b/test/src/specs/adaptor.spec.coffee @@ -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' diff --git a/test/src/specs/connection.spec.coffee b/test/src/specs/connection.spec.coffee new file mode 100644 index 0000000..cd4b7bf --- /dev/null +++ b/test/src/specs/connection.spec.coffee @@ -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' diff --git a/test/src/specs/device.spec.coffee b/test/src/specs/device.spec.coffee new file mode 100644 index 0000000..2bac35d --- /dev/null +++ b/test/src/specs/device.spec.coffee @@ -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' diff --git a/test/src/specs/driver.spec.coffee b/test/src/specs/driver.spec.coffee new file mode 100644 index 0000000..b85e30d --- /dev/null +++ b/test/src/specs/driver.spec.coffee @@ -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'