-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(main): verify resources in main lib/index.js
- Loading branch information
1 parent
43341b5
commit 6460f3f
Showing
4 changed files
with
67 additions
and
103 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
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,30 @@ | ||
const crc = require("../../lib"); | ||
const { expect } = require("chai"); | ||
|
||
describe("eslint-plugin-crc", () => { | ||
|
||
it("is a module for analyzing prototype-based JavaScript", () => { | ||
expect(crc).to.be.ok; | ||
}); | ||
|
||
describe("provides services that", () => { | ||
it("translate ASTNodes into CRC summaries", () => { | ||
expect(crc.services).to.be.ok; | ||
expect(crc.services['ast-config']).to.be.an('object'); | ||
expect(crc.services['crc-class']).to.be.a('function'); | ||
expect(crc.services['crc-context']).to.be.a('function'); | ||
expect(crc.services['crc-model']).to.be.a('function'); | ||
expect(crc.services['crc-reporter']).to.be.a('function'); | ||
expect(crc.services['crc-responsibility']).to.be.a('function'); | ||
expect(crc.services.descriptors).to.be.ok; | ||
expect(crc.services.descriptors.astNodeFactories).to.be.ok; | ||
expect(crc.services.descriptors.astNodeFactoryMap).to.be.ok; | ||
}); | ||
}); | ||
|
||
|
||
it("has a formatter for generating CRC reports", () => { | ||
expect(crc.formatters.crc).to.be.ok; | ||
expect(crc.formatters.crc).to.be.an('object'); | ||
}); | ||
}); |