UNPKG

world-countries-capitals

Version:

A simple NPM package to get capitals, currency, native language, famous_for etc. of all the countries in the world

30 lines (28 loc) 786 B
// setup Jasmine const Jasmine = require('jasmine'); const jasmine = new Jasmine(); jasmine.loadConfig({ spec_dir: 'spec', spec_files: ['**/*[sS]pec.js'], helpers: ['helpers/**/*.js'], random: false, seed: null, stopSpecOnExpectationFailure: false }); jasmine.jasmine.DEFAULT_TIMEOUT_INTERVAL = 15000; // setup console reporter const JasmineConsoleReporter = require('jasmine-console-reporter'); const reporter = new JasmineConsoleReporter({ colors: 1, cleanStack: 1, verbosity: 4, listStyle: 'indent', timeUnit: 'ms', timeThreshold: { ok: 500, warn: 1000, ouch: 3000 }, activity: true, emoji: true, beep: true }); jasmine.env.clearReporters(); jasmine.addReporter(reporter); jasmine.execute();