must-targaryen
v3.0.0-rc.0
Published
Adds Firebase Targaryen rule assertions into Must
Downloads
16
Maintainers
Readme
Firebase Targaryen Must Assertions
Currently Targaryen only has Chia and Jasimin hooks but I enjoy using Must.js. So I made this little library to help out anyone else that enjoys using must but also uses Firebase.
Installation
npm install must-targaryen --save-dev
Usage
var expect = require('must');
var mustTargaryen = require('must-targaryen');
mustTargaryen(expect);
describe('my tests', function() {
it('test', function() {
mustTargaryen.setFirebaseRules({ rules: {
'.read': 'auth != null'
}});
mustTargaryen.setFirebaseData({
users: {}
});
expect(mustTargaryen.users.unauthenticated).cannot.read.path('/users');
});
});
Release Notes
3.0.0 RC0 - 2016-12-10
- Switched to Targaryen 3.0.0-rc.0 Next version support
1.0 - 2015-11-03
- First release supporting Targaryen 2.0+