Skip to content

Commit

Permalink
Update test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga authored Jan 29, 2025
1 parent 552ccf5 commit 55be107
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/node/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,17 @@
const path = require('path');
const { metacall, metacall_load_from_file, metacall_inspect } = require('metacall');

/* TODO: Monkey-patch */
// Test Monkey Patch
const { three_str } = require('test.mock');

// Test NPM
require('is-number');

module.exports = {
mock: function() {
/* Mock */
console.log(metacall_load_from_file('mock', [ 'test.mock' ]));
console.log(metacall('three_str', 'a', 'b', 'c'));
console.log(three_str);
console.log(three_str('a', 'b', 'c'));
},
python: function() {
/* Python */
Expand Down

0 comments on commit 55be107

Please sign in to comment.