mirror of
https://github.com/ruvnet/RuView
synced 2026-08-08 20:11:43 +00:00
Squashed 'vendor/ruvector/' content from commit b64c2172
git-subtree-dir: vendor/ruvector git-subtree-split: b64c21726f2bb37286d9ee36a7869fef60cc6900
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
const tinyDancer = require('./index.js');
|
||||
|
||||
console.log('Testing @ruvector/tiny-dancer...');
|
||||
|
||||
// Test version function
|
||||
try {
|
||||
const ver = tinyDancer.version();
|
||||
console.log(`✓ version(): ${ver}`);
|
||||
} catch (e) {
|
||||
console.error('✗ version() failed:', e.message);
|
||||
}
|
||||
|
||||
// Test hello function
|
||||
try {
|
||||
const msg = tinyDancer.hello();
|
||||
console.log(`✓ hello(): ${msg}`);
|
||||
} catch (e) {
|
||||
console.error('✗ hello() failed:', e.message);
|
||||
}
|
||||
|
||||
// Test Router class exists
|
||||
try {
|
||||
if (typeof tinyDancer.Router === 'function') {
|
||||
console.log('✓ Router class available');
|
||||
} else {
|
||||
console.log('✗ Router class not found');
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('✗ Router check failed:', e.message);
|
||||
}
|
||||
|
||||
console.log('\nAll basic tests completed!');
|
||||
Reference in New Issue
Block a user