Primeiro commit do projeto Angular

This commit is contained in:
2026-03-14 20:41:55 +00:00
parent 9bebe1de72
commit 94f4f46395
22413 changed files with 3221690 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');
});