-
Notifications
You must be signed in to change notification settings - Fork 664
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
if (typeof exports === 'object') { | ||
var assert = require('assert'); | ||
var alasql = require('..'); | ||
} | ||
|
||
const test = '1983'; // insert test file number | ||
|
||
describe('Test 1983 - multiple statements', function () { | ||
|
||
before(function () { | ||
alasql('create database test' + test); | ||
alasql('use test' + test); | ||
alasql('CREATE TABLE a (anything string);') | ||
}); | ||
|
||
after(function () { | ||
alasql('drop database test' + test); | ||
}); | ||
|
||
it('USING followed by name', function () { | ||
assert.doesNotThrow(() => alasql('SELECT * FROM a a1 JOIN a a2 USING c;')); | ||
}); | ||
|
||
it('USING followed by name in parathesis', function () { | ||
assert.doesNotThrow(() => alasql('SELECT * FROM a a1 JOIN a a2 USING (c);')); | ||
}); | ||
}); |