123456789101112131415161718192021222324252627282930313233343536 |
- var assert = require('assert');
- var _ = require('@sailshq/lodash');
- var Adapter = require('../../../lib/adapter');
- var Support = require('../../support/bootstrap');
- describe('Unit Tests ::', function() {
- describe('Drop', function() {
- // Test Setup
- before(function(done) {
- Support.Setup('test_drop', done);
- });
- after(function(done) {
- Support.Teardown('test_drop', done);
- });
- it('should remove a table from the database', function(done) {
- Adapter.drop('test', 'test_drop', [], function dropCb(err) {
- if (err) {
- return done(err);
- }
- Adapter.describe('test', 'test_drop', function describeCb(err, result) {
- if (err) {
- return done(err);
- }
- assert.equal(_.keys(result), 0);
- return done();
- });
- });
- });
- });
- });
|