This file contains hidden or 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 express = require('express'); | |
const bodyParser = require('body-parser'); | |
const multer = require('multer'); | |
const app = express(); | |
app.get('/api', (req, res) => { | |
res.send('Welcome to our upload server. Have a nice ride') | |
}); |
This file contains hidden or 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
angular.module('lib.decorators', []) | |
.config(['$provide', function($provide){ | |
$provide.decorator('$rootScope', ['$delegate', function($rootScope) { | |
var _proto | |
, _new | |
, nextUid = function() { | |
return ++$rootScope.$id; | |
} | |
, Scope = function() { |
This file contains hidden or 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. Write Feature file with scenarios | |
2. Run CucumberJS to make sure I get expected scenario step def stub code | |
3. Add step defs to Feature_steps.js | |
4. Add any new utility methods I might need to pass the Feature file scenarios | |
- For example, if the Feature file is: | |
Feature: Forgot password link | |
Scenario: Clicking on the password link sends the user to the forgotpw.html page | |
Given the user is on the login page | |
When the user clicks on the forgot password link | |
Then the user is redirected to the forgot password page |