Closed aneilbaboo closed 7 years ago
Hi @avik-das - I added the substitution capability suggested in #13.
Now you can do:
var sepia = require('sepia'); sepia.substitute('<MYSECRET>', function () { return process.env.MY_ACCESS_TOKEN; });
And the fixtures will contain , while the requests will contain the value of MY_ACCESS_TOKEN.
I added tests, but couldn't quite figure out how to test the fixture files themselves. I did check that they look right, though.
Closed in favor of #22, which moves this PR to a different branch.
Hi @avik-das - I added the substitution capability suggested in #13.
Now you can do:
And the fixtures will contain, while the requests will contain the value of MY_ACCESS_TOKEN.
I added tests, but couldn't quite figure out how to test the fixture files themselves. I did check that they look right, though.