1
0
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-03-31 17:31:06 +00:00
0xd4d 826538922f
Copy more doc comments to JS/TS files, unescape comments ()
* Copy more doc comments to JS/TS files, unescape comments

* Move unescape code to macro-support
2020-04-13 13:51:32 -05:00

20 lines
976 B
JavaScript

const fs = require('fs');
const assert = require('assert');
exports.assert_comments_exist = function() {
const bindings_file = require.resolve('wasm-bindgen-test');
const contents = fs.readFileSync(bindings_file);
assert.ok(contents.includes("* annotated function ✔️ \" \\ ' {"));
assert.ok(contents.includes("* annotated struct type"));
assert.ok(contents.includes("* annotated struct field b"));
assert.ok(contents.includes("* annotated struct field c"));
assert.ok(contents.includes("* annotated struct constructor"));
assert.ok(contents.includes("* annotated struct method"));
assert.ok(contents.includes("* annotated struct getter"));
assert.ok(contents.includes("* annotated struct setter"));
assert.ok(contents.includes("* annotated struct static method"));
assert.ok(contents.includes("* annotated enum type"));
assert.ok(contents.includes("* annotated enum variant 1"));
assert.ok(contents.includes("* annotated enum variant 2"));
};