touch .travis.yml
- Copy paste the following
language: node_js
node_js: stable
http://angular.github.io/protractor/#/api
Note: Most commands return promises, so you only resolve their values through using jasmine expect API or using .then(function()) structure
Based on this post: https://spagettikoodi.wordpress.com/2015/01/14/angular-testing-cheat-sheet/ by @crystoll
browser.get('yoururl'); // Load address, can also use '#yourpage'
(ns async-test.timeout.core | |
(:require [cljs.core.async :refer [chan close!]]) | |
(:require-macros | |
[cljs.core.async.macros :as m :refer [go]])) | |
(defn timeout [ms] | |
(let [c (chan)] | |
(js/setTimeout (fn [] (close! c)) ms) | |
c)) | |
Use the Star Wars API to generate a list of the films that a particular character appears in.
Submit an application that accomplishes the objectives below. Hosting is up to you, we only need a link to a working deployment of your project, and a link to your source code. We reccomend js bin, Plunker, and StackBlitz for free, all-in-one solutions.
Alternatively, use github, gitlab, or bitbucket for source control, and a real hosting service such as AWS, Google Cloud, Digital Ocean, or Heroku. Bonus points for continuous integration and deployment
Use the Star Wars API to generate a list of the films that a particular character appears in.
Submit an application that accomplishes the objectives below. Hosting is up to you, we only need a link to a working deployment of your project, and a link to your source code. We reccomend js bin and Plunker for free, all-in-one solutions.
language: node_js | |
node_js: | |
- "8.2.1" | |
install: | |
- npm install newman | |
before_script: | |
- node --version | |
- npm --version |
var pmx = require('pmx'); | |
var express = require('express'); | |
var pool = require('./db_connect.js'); | |
var app = express(); | |
var server = require('http').createServer(app); | |
var io = require('socket.io')(server); | |
var ejs = require('ejs'); | |
app.set('view engine', 'ejs'); | |
app.set('views', __dirname + '/templates'); |