mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-02 10:17:51 +00:00
bulk code format fix (#8707)
This commit is contained in:
parent
0e047869da
commit
caf3b494db
559 changed files with 38871 additions and 31276 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import assert from 'assert'
|
||||
import * as flatbuffers from 'flatbuffers';
|
||||
import { Foo } from './required-strings/foo.js';
|
||||
|
||||
import {Foo} from './required-strings/foo.js';
|
||||
|
||||
|
||||
var builder = new flatbuffers.Builder();
|
||||
|
|
@ -12,21 +13,17 @@ function main() {
|
|||
}
|
||||
|
||||
function testMissingFirstRequiredString() {
|
||||
const undefined_string = builder.createString(undefined);
|
||||
const defined_string = builder.createString('cat');
|
||||
const undefined_string = builder.createString(undefined);
|
||||
const defined_string = builder.createString('cat');
|
||||
|
||||
assert.throws(() => Foo.createFoo(
|
||||
builder, undefined_string, defined_string
|
||||
));
|
||||
assert.throws(() => Foo.createFoo(builder, undefined_string, defined_string));
|
||||
}
|
||||
|
||||
function testMissingSecondRequiredString() {
|
||||
const defined_string = builder.createString('cat');
|
||||
const undefined_string = builder.createString(undefined);
|
||||
const defined_string = builder.createString('cat');
|
||||
const undefined_string = builder.createString(undefined);
|
||||
|
||||
assert.throws(() => Foo.createFoo(
|
||||
builder, defined_string, undefined_string
|
||||
));
|
||||
assert.throws(() => Foo.createFoo(builder, defined_string, undefined_string));
|
||||
}
|
||||
|
||||
main();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue