Adding a test robot method
This commit is contained in:
parent
4e192e4199
commit
8d75066062
|
@ -0,0 +1,13 @@
|
||||||
|
Copyright (c) 2013 The Hybrid Group
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
|
@ -1,18 +1,18 @@
|
||||||
# cylon [![Build Status](https://secure.travis-ci.org/deadprogram/cylon.png?branch=master)](http://travis-ci.org/deadprogram/cylon)
|
# cylon [![Build Status](https://secure.travis-ci.org/deadprogram/cylon.png?branch=master)](http://travis-ci.org/deadprogram/cylon)
|
||||||
|
|
||||||
A small robotics framework based on nactor
|
A JavaScript robotics framework using node.js and nactor
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
Install the module with: `npm install cylon`
|
Install the module with: `npm install cylon`
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var cylon = require('cylon');
|
var cylon = require('cylon');
|
||||||
cylon.awesome(); // "awesome"
|
cylon.robot(); // "awesome"
|
||||||
```
|
```
|
||||||
|
|
||||||
```coffee-script
|
```coffee-script
|
||||||
cylon = require 'cylon'
|
cylon = require 'cylon'
|
||||||
cylon.awesome() // "awesome"
|
cylon.robot() // "awesome"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
@ -28,4 +28,4 @@ In lieu of a formal styleguide, take care to maintain the existing coding style.
|
||||||
_(Nothing yet)_
|
_(Nothing yet)_
|
||||||
|
|
||||||
## License
|
## License
|
||||||
Copyright (c) 2013 Ron Evans. Licensed under the Apache 2.0 license.
|
Copyright (c) 2013 The Hybrid Group. Licensed under the Apache 2.0 license.
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
* cylon
|
* cylon
|
||||||
* cylonjs.com
|
* cylonjs.com
|
||||||
*
|
*
|
||||||
* Copyright (c) 2013 Ron Evans
|
* Copyright (c) 2013 The Hybrid Group
|
||||||
* Licensed under the Apache 2.0 license.
|
* Licensed under the Apache 2.0 license.
|
||||||
###
|
###
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
exports.awesome = ->
|
exports.robot = ->
|
||||||
'awesome'
|
'irobot'
|
||||||
|
|
|
@ -30,7 +30,7 @@ describe "basic tests", ->
|
||||||
data[0].should.be.equal obj
|
data[0].should.be.equal obj
|
||||||
|
|
||||||
# Now on to a `real` test
|
# Now on to a `real` test
|
||||||
it "cylon should be awesome", ->
|
it "cylon should create a robot", ->
|
||||||
cylon.should.have.keys 'awesome'
|
cylon.should.have.keys 'robot'
|
||||||
cylon.awesome.should.be.a 'function'
|
cylon.robot.should.be.a 'function'
|
||||||
cylon.awesome().should.be.equal 'awesome'
|
cylon.robot().should.be.equal 'irobot'
|
Loading…
Reference in New Issue