-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 88f4217
Showing
8 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
test: | ||
@./node_modules/.bin/mocha -u bdd --reporter landing --require should | ||
|
||
.PHONY: test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# uReddit |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
var defaults = { | ||
id: 23 | ||
}; | ||
|
||
function Bar(){ | ||
return "hey"; | ||
}; | ||
|
||
exports.Bar = Bar; | ||
exports.defaults = defaults; | ||
|
||
|
||
// exports.Bar = function(text){ | ||
// return text + text; | ||
// }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "uReddit", | ||
"version": "0.0.1", | ||
"description": "API Wrapper for the University of Reddit", | ||
"main": "./lib/main", | ||
"bin": { | ||
"uReddit": "./bin/uReddit.js" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"mocha": "0.3.x", | ||
"should": "1.1.x" | ||
}, | ||
"scripts": { | ||
"test": "make test" | ||
}, | ||
"repository": "", | ||
"author": "Gaurav Mali <hello@gauravmali.com>" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
var mocha = require('mocha'); | ||
var should = require('should'); | ||
var Bar = require('../lib/uReddit.js').Bar | ||
var def = require('../lib/uReddit.js').defaults | ||
|
||
|
||
describe('Testing Bar', function() { | ||
|
||
describe('Default', function() { | ||
it('should have a property ID', function() { | ||
def.should.have.property('id'); | ||
}); | ||
|
||
it('should say hey', function(){ | ||
var foo = Bar(); | ||
foo.should.equal("hey"); | ||
}); | ||
}); | ||
}); |