Skip to content

Commit

Permalink
Merge pull request #4 from fabrix-app/v1.5
Browse files Browse the repository at this point in the history
V1.5
  • Loading branch information
scott-wyatt authored Oct 7, 2018
2 parents ba0f006 + 8ceac10 commit 2b4923c
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Tapestries are routes that are auto-generated from your model and controller
* definitions in api/controllers and api/models.
*
* @see http://fabrix.app/doc/config/tapestries
* @see https://fabrix.app/docs/config/tapestries
*/
export const tapestries = {
/**
Expand Down
22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fabrix/spool-tapestries",
"version": "1.5.0",
"version": "1.5.1",
"description": "Spool - Tapestries, Easy RESTful Services",
"scripts": {
"build": "tsc -p ./lib/tsconfig.release.json",
Expand All @@ -14,7 +14,8 @@
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"files": [
"dist"
"dist",
"archetype"
],
"pre-commit": [
"test"
Expand Down Expand Up @@ -49,8 +50,8 @@
"lodash": "^4.17.10"
},
"devDependencies": {
"@fabrix/fabrix": "^1.5.0",
"@fabrix/spool-router": "^1.5.0",
"@fabrix/fabrix": "^1.5.9",
"@fabrix/spool-router": "^1.5.1",
"@fabrix/lint": "^1.0.0-alpha.3",
"@types/lodash": "^4.14.109",
"@types/node": "~10.3.4",
Expand All @@ -64,8 +65,8 @@
"typescript": "~2.8.1"
},
"peerDependencies": {
"@fabrix/fabrix": "^1.5.0",
"@fabrix/spool-router": "^1.5.0"
"@fabrix/fabrix": "^1.5.9",
"@fabrix/spool-router": "^1.5.1"
},
"license": "MIT",
"bugs": {
Expand Down
6 changes: 6 additions & 0 deletions test/unit/lib/errors.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@ describe('lib.Errors', () => {
assert.equal(err.name, 'TapestryServiceNotInstalledError')
})
})
describe('TapestryControllerNotInstalledError', () => {
it('#name', () => {
const err = new lib.Errors.TapestryControllerNotInstalledError()
assert.equal(err.name, 'TapestryControllerNotInstalledError')
})
})
})
19 changes: 19 additions & 0 deletions test/unit/lib/validateConfig.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
'use strict'

//const _ = require('lodash')
const assert = require('assert')
const lib = require('../../../dist/validator/validateConfig')

describe('lib.ValidateConfig', () => {
describe('#validateConfig', () => {
it('should validate a bad tapestries config', (done) => {
lib.validateConfig.validateConfig('break')
.then(broke => {
done(broke)
})
.catch(err => {
done()
})
})
})
})

0 comments on commit 2b4923c

Please sign in to comment.