Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
596 B

  1. 'use strict'
  2. /* jshint asi: true */
  3. var test = require('tape')
  4. var path = require('path')
  5. var fs = require('fs')
  6. var themesdir = path.join(__dirname, '..', 'themes')
  7. var allFiles = fs.readdirSync(themesdir)
  8. test('validate themes by requiring all of them', function(t) {
  9. allFiles
  10. .filter(function(file) { return path.extname(file) === '.js' })
  11. .forEach(function(theme) {
  12. try {
  13. t.ok(require(path.join(themesdir, theme)), theme + ' is valid')
  14. } catch (e) {
  15. t.fail('theme: ' + theme + ' is invalid! ' + e.message)
  16. }
  17. })
  18. t.end()
  19. })