UNPKG

closeheat

Version:

Static Website Hosting with CMS without touching your code.

21 lines (15 loc) 409 B
path = require 'path' fs = require 'fs' module.exports = class TestConfig @init: -> global.CONFIG_DIR = @dir() @dir: -> path.join(process.cwd(), 'test', 'fixtures', 'home', '.closeheat') @websiteDir: -> path.join(process.cwd(), 'test', 'fixtures', 'website') @file: -> path.join(@dir(), 'config.json') @rm: -> return unless fs.existsSync(@file()) fs.unlinkSync(@file())