Sha256: 846fda7ca5af428cf55af745df7c30522ce9a28b55d3f223e0d56fb2a6b02e01

Contents?: true

Size: 608 Bytes

Versions: 72

Compression:

Stored size: 608 Bytes

Contents

'use strict';
/*jshint asi: true*/

var test     =  require('tap').test
  , path     =  require('path')
  , fs       =  require('fs')
  , themesdir = path.join(__dirname, '..', 'themes')
  , allFiles = fs.readdirSync(themesdir)

test('validate themes by requiring all of them', function (t) {
  allFiles
    .filter(function (file) { return path.extname(file) === '.js'; })
    .forEach(function (theme) {
      try {
        t.ok(require(path.join(themesdir, theme)), theme + ' is valid')   
      } catch (e) {
        t.fail('theme: ' + theme + ' is invalid! ' + e.message)
      }
    })
  t.end()
})
  

Version data entries

72 entries across 72 versions & 3 rubygems

Version Path
ilog-0.4.1 node_modules/cardinal/test/themes.js
ilog-0.4.0 node_modules/cardinal/test/themes.js
ilog-0.3.3 node_modules/cardinal/test/themes.js
trusty-festivity-extension-2.6.3 node_modules/bower/node_modules/cardinal/test/themes.js
trusty-festivity-extension-2.6.2 node_modules/bower/node_modules/cardinal/test/themes.js
trusty-festivity-extension-2.6.1 node_modules/bower/node_modules/cardinal/test/themes.js
trusty-festivity-extension-2.6 node_modules/bower/node_modules/cardinal/test/themes.js
trusty-festivity-extension-2.5.19 node_modules/bower/node_modules/cardinal/test/themes.js
trusty-festivity-extension-2.5.18 node_modules/bower/node_modules/cardinal/test/themes.js
trusty-festivity-extension-2.5.17 node_modules/bower/node_modules/cardinal/test/themes.js
trusty-festivity-extension-2.5.16 node_modules/bower/node_modules/cardinal/test/themes.js
trusty-festivity-extension-2.5.15 node_modules/bower/node_modules/cardinal/test/themes.js
trusty-festivity-extension-2.5.14 node_modules/bower/node_modules/cardinal/test/themes.js
trusty-festivity-extension-2.5.13 node_modules/bower/node_modules/cardinal/test/themes.js
trusty-festivity-extension-2.5.12 node_modules/bower/node_modules/cardinal/test/themes.js
trusty-festivity-extension-2.5.11 node_modules/bower/node_modules/cardinal/test/themes.js
trusty-festivity-extension-2.5.10 node_modules/bower/node_modules/cardinal/test/themes.js
trusty-festivity-extension-2.5.9 node_modules/bower/node_modules/cardinal/test/themes.js
trusty-festivity-extension-2.5.8 node_modules/bower/node_modules/cardinal/test/themes.js
trusty-festivity-extension-2.5.7 node_modules/bower/node_modules/cardinal/test/themes.js