mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-08-18 04:28:02 +00:00
Fixes broken test suite
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@
|
||||
"version": "1.0.0",
|
||||
"description": "Register *.is-a.dev domains for free",
|
||||
"scripts": {
|
||||
"test": "jest",
|
||||
"test": "ENV=test jest",
|
||||
"publish-records": "yarn test && node ./scripts/register-domains.js"
|
||||
},
|
||||
"repository": {
|
||||
|
||||
+4
-2
@@ -8,12 +8,14 @@ if (!CI) {
|
||||
|
||||
const { NC_USER, NC_API_KEY, NC_DOMAIN, IP_ADDRESS } = process.env;
|
||||
|
||||
const IS_TEST = ENV === 'test';
|
||||
|
||||
module.exports = {
|
||||
ENV,
|
||||
VALID_RECORD_TYPES: ['CNAME', 'A', 'ALIAS', 'URL'],
|
||||
NC_DOMAIN: NC_DOMAIN || 'booboo.xyz',
|
||||
NC_USER,
|
||||
NC_API_KEY,
|
||||
NC_USER: IS_TEST ? 'testuser' : NC_USER,
|
||||
NC_API_KEY: IS_TEST ? 'testkey' : NC_API_KEY,
|
||||
IP_ADDRESS,
|
||||
TTL: 5*60,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user