This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const crypto = require('crypto'); | |
const http = require('request'); | |
const apiKey= ''; | |
const apiSecret = ''; | |
const hash = crypto.createHmac('sha512', apiSecret) | |
let nonce = Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 5); | |
let url = `https://bittrex.com/api/v1.1/account/getbalances?apikey=${apiKey}&nonce=${nonce}`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. start the dev server using production config | |
process.env.NODE_ENV = 'testing'; | |
const server = require('../../build/dev-server.js'); | |
const spawn = require('cross-spawn'); | |
const browserStack = require('browserstack-local'); | |
const testEnv = require('../../config/test.env.js'); | |
// For more information on Nightwatch's config file, see | |
// http://nightwatchjs.org/guide#settings-file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('babel-register'); | |
const testEnv = require('../../config/test.env.js'); | |
// http://nightwatchjs.org/guide#settings-file | |
module.exports = { | |
src_folders: ['test/e2e/specs'], | |
output_folder: 'test/e2e/reports', | |
custom_assertions_path: ['test/e2e/custom-assertions'], | |
selenium: { |