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)
|
||||
|
||||
A small robotics framework based on nactor
|
||||
A JavaScript robotics framework using node.js and nactor
|
||||
|
||||
## Getting Started
|
||||
Install the module with: `npm install cylon`
|
||||
|
||||
```javascript
|
||||
var cylon = require('cylon');
|
||||
cylon.awesome(); // "awesome"
|
||||
cylon.robot(); // "awesome"
|
||||
```
|
||||
|
||||
```coffee-script
|
||||
cylon = require 'cylon'
|
||||
cylon.awesome() // "awesome"
|
||||
cylon.robot() // "awesome"
|
||||
```
|
||||
|
||||
## Documentation
|
||||
|
@ -28,4 +28,4 @@ In lieu of a formal styleguide, take care to maintain the existing coding style.
|
|||
_(Nothing yet)_
|
||||
|
||||
## 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
|
||||
* cylonjs.com
|
||||
*
|
||||
* Copyright (c) 2013 Ron Evans
|
||||
* Copyright (c) 2013 The Hybrid Group
|
||||
* Licensed under the Apache 2.0 license.
|
||||
###
|
||||
|
||||
'use strict';
|
||||
|
||||
exports.awesome = ->
|
||||
'awesome'
|
||||
exports.robot = ->
|
||||
'irobot'
|
||||
|
|
|
@ -30,7 +30,7 @@ describe "basic tests", ->
|
|||
data[0].should.be.equal obj
|
||||
|
||||
# Now on to a `real` test
|
||||
it "cylon should be awesome", ->
|
||||
cylon.should.have.keys 'awesome'
|
||||
cylon.awesome.should.be.a 'function'
|
||||
cylon.awesome().should.be.equal 'awesome'
|
||||
it "cylon should create a robot", ->
|
||||
cylon.should.have.keys 'robot'
|
||||
cylon.robot.should.be.a 'function'
|
||||
cylon.robot().should.be.equal 'irobot'
|
Loading…
Reference in New Issue