不要怂,就是干,撸起袖子干!

Commit aedda11f by Sascha Depold

first test file

1 parent f8eafff4
Showing with 18 additions and 0 deletions
var chai = require('chai')
, expect = chai.expect
, Utils = require(__dirname + '/../lib/utils')
describe("Utils", function() {
describe('removeCommentsFromFunctionString', function() {
it("removes line comments at the start of a line", function() {
var functionWithLineComments = function() {
// noot noot
}
var string = functionWithLineComments.toString()
, result = Utils.removeCommentsFromFunctionString(string)
expect(result).not.to.match(/.*noot.*/)
})
})
})
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!