Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
after(function(done) {
// This time destroy database
require('apostrophe/test-lib/util').destroy(apos, done);
});
after(function(done) {
require('apostrophe/test-lib/util').destroy(apos, function() {
require('apostrophe/test-lib/util').destroy(apos2, done);
});
});
it('global should exist on the apos object', function(done) {
after(function(done) {
require('apostrophe/test-lib/util').destroy(apos, done);
});
after(function(done) {
require('apostrophe/test-lib/util').destroy(apos, done);
});
after(function(done) {
require('apostrophe/test-lib/util').destroy(apos, function() {
require('apostrophe/test-lib/util').destroy(apos2, function() {
require('apostrophe/test-lib/util').destroy(apos3, function() {
require('apostrophe/test-lib/util').destroy(apos4, done);
});
});
});
});
after(function(done) {
require('apostrophe/test-lib/util').destroy(apos, done);
});
after(function(done) {
require('apostrophe/test-lib/util').destroy(apos, done);
});
require('apostrophe/test-lib/util').destroy(apos, function() {
require('apostrophe/test-lib/util').destroy(apos2, function() {
require('apostrophe/test-lib/util').destroy(apos3, function() {
require('apostrophe/test-lib/util').destroy(apos4, done);
});
});
});
});
after(function(done) {
require('apostrophe/test-lib/util').destroy(apos, done);
});
after(function(done) {
require('apostrophe/test-lib/util').destroy(apos, done);
});