infrastructure: create monorepo structure with apps/angular, apps/react, e2e directories

This commit is contained in:
gnezim
2026-04-05 18:53:38 +03:00
parent c012c7ebe8
commit 382d8c453a
34399 changed files with 18 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
var assert = require('assert');
var stackback = require('./');
test('capture', function() {
var err = new Error();
var stack = stackback(err);
assert.equal(stack[0].getFileName(), __filename);
});
// calling stackback on the same error twice should work
test('multiple calls', function() {
var err = new Error();
var stack1 = stackback(err);
var stack2 = stackback(err);
assert.equal(stack1[0].getFileName(), __filename);
assert.deepEqual(stack1, stack2);
});
test('string', function() {
var err = new Error();
stackback(err);
assert.equal(typeof err.stack, 'string');
});