UNPKG

runas-functional-tests

Version:

Functional tests for runas

18 lines (12 loc) 314 B
'use strict'; const path = require('path'); const process = require('process'); const _isWorldFolder = function() { const dir = process.cwd().split(path.sep); return dir[dir.length - 1] === 'world'; }; module.exports = { check() { return _isWorldFolder(); // add a condition to check 'world' } };