Properly organize supporting classes for tests
This commit is contained in:
parent
31bfa85fa8
commit
88ab1a2d34
|
@ -8,6 +8,7 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
# A test class, used to create dummy Drivers
|
||||
module.exports = class Driver
|
||||
constructor: (opts) ->
|
||||
@self = this
|
|
@ -2,7 +2,7 @@
|
|||
'use strict';
|
||||
var Adaptor;
|
||||
|
||||
Adaptor = source("adaptor");
|
||||
Adaptor = source("test/adaptor");
|
||||
|
||||
describe("Adaptor", function() {
|
||||
var adaptor;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
source("connection");
|
||||
|
||||
Adaptor = source("adaptor");
|
||||
Adaptor = source("test/adaptor");
|
||||
|
||||
Robot = source("robot");
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
source("robot");
|
||||
|
||||
Driver = source("driver");
|
||||
Driver = source("test/driver");
|
||||
|
||||
describe("Device", function() {
|
||||
var device, driver, requireDriver, robot;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
'use strict';
|
||||
var Driver;
|
||||
|
||||
Driver = source("driver");
|
||||
Driver = source("test/driver");
|
||||
|
||||
describe("Driver", function() {
|
||||
var driver;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
Adaptor = source("adaptor")
|
||||
Adaptor = source("test/adaptor")
|
||||
|
||||
describe "Adaptor", ->
|
||||
adaptor = new Adaptor(name: "adaptive")
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
source("connection")
|
||||
Adaptor = source("adaptor")
|
||||
Adaptor = source("test/adaptor")
|
||||
Robot = source("robot")
|
||||
|
||||
describe "Connection", ->
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
source("device")
|
||||
source("robot")
|
||||
Driver = source("driver")
|
||||
Driver = source("test/driver")
|
||||
|
||||
describe "Device", ->
|
||||
robot = new Cylon.Robot(name: 'me')
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
Driver = source("driver")
|
||||
Driver = source("test/driver")
|
||||
|
||||
describe "Driver", ->
|
||||
driver = new Driver(name: "driving")
|
||||
|
|
Loading…
Reference in New Issue