var suite = require('suite.js');
var partial = require('funkit/functional/partial');
var f = require('funkit/common');

function add(a, b) {
    return a + b;
}

f.annotate(add, Number, Number);

suite(partial(getMeta, add), [
    '_doc', undefined,
    '_invariants', [Number, Number]
]);

f.annotate(add, String, String, 'Appends two strings');

suite(partial(getMeta, add), [
    '_doc', 'Appends two strings',
    '_invariants', [String, String]
]);

function getMeta(fn, name) {
    return fn[name];
}

@@ -155,16 +155,33 @@
 + b;%0A%7D%0A%0A
+var addNumbers = 
 f.annota
@@ -224,32 +224,39 @@
 ial(getMeta, add
+Numbers
 ), %5B%0A    '_doc',
@@ -308,16 +308,33 @@
 r%5D%0A%5D);%0A%0A
+var addStrings = 
 f.annota
@@ -408,16 +408,23 @@
 eta, add
+Strings
 ), %5B%0A   

Update test