Skip to content

Commit

Permalink
Updates engines. Updates templates. Updates dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
zrrrzzt committed Nov 27, 2017
1 parent 9c8f9f4 commit 14707a2
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Internt notat ang manuell distribusjon av kvittering for avslått samtale

Maler for ulike skjemaer tilknyttet YFF.

## Evaluering
## Tilbakemelding
Denne malen benyttes for å dokumentere tilbakemelding fra bedrift til elev

Koder som benyttes:
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tfk-saksbehandling-minelev-templates",
"version": "1.5.3",
"version": "1.5.4",
"description": "Templates for the MinElev ecosystem",
"license": "MIT",
"author": {
Expand All @@ -10,7 +10,7 @@
},
"main": "index.js",
"engines": {
"node": ">=8.7.0"
"node": ">=8.9.1"
},
"scripts": {
"test": "standard && nsp check && ava",
Expand All @@ -34,9 +34,9 @@
"bugs": {
"url": "https://github.com/telemark/tfk-saksbehandling-minelev-templates/issues"
},
"homepage": "https://github.com/telemark/tfk-saksbehandling-minelev-templates",
"homepage": "https://github.com/telemark/tfk-saksbehandling-minelev-templates#readme",
"devDependencies": {
"ava": "0.22.0",
"ava": "0.23.0",
"coveralls": "3.0.0",
"nsp": "3.1.0",
"nyc": "11.3.0",
Expand Down
2 changes: 1 addition & 1 deletion templates/templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
}
},
"yff-evaluering": {
"file": "yff-evaluering.docx",
"file": "yff-tilbakemelding.docx",
"archive": {
"Category": "Internt notat e-post UTEN oppfølging (X)",
"SignOff": false,
Expand Down
Binary file modified templates/yff-informasjonsskriv.docx
Binary file not shown.
Binary file modified templates/yff-lokalplan.docx
Binary file not shown.
Binary file not shown.
8 changes: 5 additions & 3 deletions test/modules/dependencies-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@
const test = require('ava')
const pkg = require('../../package.json')
const dependencies = pkg.dependencies || {}
const dropModules = []
const isDropped = (module) => !dropModules.includes(module)

if (Object.keys(dependencies).length > 0) {
Object.keys(dependencies).forEach((dependency) => {
Object.keys(dependencies).filter(isDropped).forEach((dependency) => {
test(`${dependency} loads ok`, t => {
const module = require(dependency)
t.truthy(module)
})
})
} else {
test('Nothing to do', t => {
t.pass('Yay!')
test('no dependecies to test', t => {
t.truthy(true)
})
}
18 changes: 13 additions & 5 deletions test/modules/dev-dependencies-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,18 @@
const test = require('ava')
const pkg = require('../../package.json')
const dependencies = pkg.devDependencies || {}
const dropModules = ['nsp']
const isDropped = (module) => !dropModules.includes(module)

Object.keys(dependencies).forEach((dependency) => {
test(`${dependency} loads ok`, t => {
const module = require(dependency)
t.truthy(module)
if (Object.keys(dependencies).length > 0) {
Object.keys(dependencies).filter(isDropped).forEach((dependency) => {
test(`${dependency} loads ok`, t => {
const module = require(dependency)
t.truthy(module)
})
})
})
} else {
test('no dependecies to test', t => {
t.truthy(true)
})
}

0 comments on commit 14707a2

Please sign in to comment.