mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 12:05:50 +00:00
bulk code format fix (#8707)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user