node-eventstore-client/test/metadata_test.js
Nicolas Dextraze 4ea996781f Adding tests
2016-10-14 22:53:23 -07:00

27 lines
696 B
JavaScript

var util = require('util');
var uuid = require('uuid');
var client = require('../src/client');
module.exports = {
'Test Set Stream Metadata Raw': function(test) {
this.conn.setStreamMetadataRaw(this.testStreamName, client.expectedVersion.emptyStream, {$maxCount: 100})
.then(function(result) {
test.done();
})
.catch(function(err) {
test.done(err);
});
},
'Test Get Stream Metadata Raw': function(test) {
this.conn.getStreamMetadataRaw(this.testStreamName)
.then(function(result) {
test.done();
})
.catch(function(err) {
test.done(err);
});
}
};
require('./common/base_test').init(module.exports);