We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 489e840 commit ba79800Copy full SHA for ba79800
test/unit/test-Mysql.js
@@ -19,3 +19,20 @@ test('Mysql.format', {
19
);
20
}
21
});
22
+
23
+test('Mysql.Types', {
24
+ 'exported object of types': function() {
25
+ assert.equal(typeof Mysql.Types, 'object');
26
+ assert.ok(Mysql.Types);
27
+ assert.equal(Mysql.Types, common.Types);
28
+ },
29
30
+ 'string names to integer values': function() {
31
+ var types = Object.keys(Mysql.Types);
32
+ assert.ok(types.length > 0);
33
+ types.forEach(function (type) {
34
+ assert.ok(/^[A-Z_]+/.test(type));
35
+ assert.equal(typeof Mysql.Types[type], 'number');
36
+ });
37
+ }
38
+});
0 commit comments