summaryrefslogtreecommitdiffstats
path: root/test/config.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/config.js')
-rw-r--r--test/config.js39
1 files changed, 0 insertions, 39 deletions
diff --git a/test/config.js b/test/config.js
deleted file mode 100644
index 474ffea..0000000
--- a/test/config.js
+++ /dev/null
@@ -1,39 +0,0 @@
-var mock = require('./mock');
-
-describe('Config', function() {
-
- describe('config.load()', function() {
- it('should not fail if no configuration file', function() {
- return mock.setupDefaultBook()
- .then(function(book) {
- return book.prepareConfig();
- });
- });
-
- it('should load from a JSON file', function() {
- return mock.setupDefaultBook({
- 'book.json': { title: 'Hello World' }
- })
- .then(function(book) {
- return book.prepareConfig()
- .then(function() {
- book.config.get('title', '').should.equal('Hello World');
- });
- });
- });
-
- it('should load from a JS file', function() {
- return mock.setupDefaultBook({
- 'book.js': 'module.exports = { title: "Hello World" };'
- })
- .then(function(book) {
- return book.prepareConfig()
- .then(function() {
- book.config.get('title', '').should.equal('Hello World');
- });
- });
- });
- });
-
-});
-