-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
* chore: basic integration with export to language modal * chore: fix issues with the transpiler integration * chore: add support for delete many * chore: simplify integration, so later the update_many is easier * chore: add test to code export * chore: refactor, get the query from the state directly * chore: linter happy * chore: remove deprecated telemetry * chore: add test to export modal * chore: add test to export modal * chore: design fixes * chore: use vertical scrolling for the delete preview * chore: test exportMode exclusion in compilation * chore: refactor export-to-language so all queries use same event * chore: fix linter * chore: change button to Cancel * chore: fix missing test * chore: fix missing test * chore: forgot to remove .only * chore: fix linting complains * chore: fix tests when added exportMode * chore: fix e2e test * chore: adapt so it compiles for the update dialog * chore: revert unwanted changes * chore: fix references to results in the bson transpiler * chore: add todo ticket to update bulk export * chore: refactor, extract export button out of ReadonlyFilter * chore: after the refactor, this is not necessary * chore: remove dead code
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
const assert = require('assert'); | ||
const transpilers = require('../index'); | ||
|
||
const SAMPLE = transpilers.javascript.java; | ||
|
||
const VALID_OPTIONS = { | ||
uri: 'mongodb://localhost', | ||
database: 'test', | ||
collection: 'webscale' | ||
}; | ||
|
||
const INVALID_JS = '{ ... }'; | ||
const VALID_JS = '({ a : 1 })'; | ||
|
||
describe('bson transpiler', function() { | ||
describe('#compileWithDriver', function() { | ||
it('does not compile internal options like "options"', function() { | ||
const result = SAMPLE.compileWithDriver({ | ||
options: VALID_OPTIONS, | ||
filter: VALID_JS | ||
}); | ||
assert.ok(result.includes('webscale')); | ||
}); | ||
|
||
it('does not compile internal options like "exportMode"', function() { | ||
const result = SAMPLE.compileWithDriver({ | ||
options: VALID_OPTIONS, | ||
exportMode: INVALID_JS, | ||
filter: VALID_JS | ||
}); | ||
assert.ok(result.includes('webscale')); | ||
}); | ||
}); | ||
}); |