Skip to content

Upgrade 1.x to 2.x

balazs4 edited this page Sep 23, 2020 · 1 revision
  • fx is not needed anymore for alola

still highly recommended for further json inspection

  • remove the following parts from your alola call:
- export NODE_PATH=`npm root -g`

curl -Lis http://localhost:4242 \
 | alola \
- | FX_APPLY=alola fx \
  'headers.content-type should match json' \
  'headers.x-powered-by should be Express' \
  'status should be 200' \
  'status should not be 404'
  • move your custom assertions (if any) from ~/.fxrc into a ./.alola.js and update the following:
- global.alola = require(`alola/fx`)({
+ module.exports = {
  'alola is (fantastic|awesome)': (json, key)=> { require('assert').ok(true); }
- });
+ };
Clone this wiki locally