Skip to content

Commit

Permalink
index.js tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus committed Mar 14, 2017
1 parent b9b5952 commit 359463a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions packages/spanner/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,25 @@ describe('Spanner', function() {
});
});

describe('float', function() {
it('should create a SpannerDate instance', function() {
var value = {};
var customValue = {};

fakeCodec.Float = function(value_) {
assert.strictEqual(value_, value);
return customValue;
};

var float = spanner.float(value);
assert.strictEqual(float, customValue);
});

it('should be a static method', function() {
assert(Spanner.date() instanceof fakeCodec.SpannerDate);
});
});

describe('int', function() {
it('should create an Int instance', function() {
var value = {};
Expand Down

0 comments on commit 359463a

Please sign in to comment.