Skip to content

Commit 4161626

Browse files
author
Cameron Cundiff
committed
Create AccessLintMonitor class.
- scaffold of a class to encompass auditing delegation behavior
1 parent d5cdc47 commit 4161626

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

access-lint-monitor.coffee

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class AccessLintMonitor
2+
audit: ->
3+
[]
4+
5+
module.exports = new AccessLintMonitor()

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
"devDependencies": {
2121
"gulp": "~3.9.0",
2222
"gulp-mocha": "~2.1.3",
23-
"chai": "~3.2.0"
23+
"chai": "~3.2.0",
24+
"sinon": "~1.15.4",
25+
"sinon-chai": "~2.8.0"
2426
},
2527
"dependencies": {
2628
"coffee-script": "~1.9.3"

test/test.coffee

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
expect = require("chai").expect
1+
accessLintMonitor = require "../access-lint-monitor"
2+
chai = require "chai"
3+
sinon = require "sinon"
4+
sinonChai = require "sinon-chai"
5+
expect = chai.expect
6+
7+
chai.use sinonChai
8+
9+
describe "#audit", ->
10+
it "runs the audit", ->
11+
expect(accessLintMonitor.audit()).to.be.empty
212

3-
describe "true", ->
4-
it "is true", ->
5-
expect(true).to.equal true

0 commit comments

Comments
 (0)