Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
Also add invalid name test
  • Loading branch information
mtth committed Oct 15, 2020
1 parent 96065d9 commit 8eec036
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "avsc",
"version": "5.5.1",
"version": "5.5.2",
"description": "Avro for JavaScript",
"homepage": "https://github.com/mtth/avsc",
"keywords": [
Expand Down
11 changes: 11 additions & 0 deletions test/test_types.js
Expand Up @@ -1454,6 +1454,17 @@ suite('types', function () {
});
});

test('invalid name', function () {
var schema = {
name: 'foo-bar.Bar',
type: 'record',
fields: [{name: 'id', type: 'int'}]
};
assert.throws(function () {
Type.forSchema(schema);
}, /invalid name/);
});

test('reserved name', function () {
var schema = {
name: 'case',
Expand Down

0 comments on commit 8eec036

Please sign in to comment.