fix: typo (#45)
This commit is contained in:
@@ -18,7 +18,7 @@ import * as t from '../src/proto';
|
||||
|
||||
describe('ferry-parser', () => {
|
||||
describe('proto field', () => {
|
||||
it('should convert message field extenstions', () => {
|
||||
it('should convert message field extensions', () => {
|
||||
const idl = `
|
||||
syntax = "proto3";
|
||||
enum Numbers {
|
||||
@@ -83,7 +83,7 @@ describe('ferry-parser', () => {
|
||||
return expect(extensionConfigs).to.eql(expected);
|
||||
});
|
||||
|
||||
it('should convert message field extenstions using old rules', () => {
|
||||
it('should convert message field extensions using old rules', () => {
|
||||
const idl = `
|
||||
syntax = "proto3";
|
||||
message Foo {
|
||||
|
||||
@@ -18,7 +18,7 @@ import * as t from '../src/proto';
|
||||
|
||||
describe('ferry-parser', () => {
|
||||
describe('proto method', () => {
|
||||
it('should convert method extenstions', () => {
|
||||
it('should convert method extensions', () => {
|
||||
const idl = `
|
||||
syntax = 'proto3';
|
||||
message BizRequest {}
|
||||
@@ -74,7 +74,7 @@ describe('ferry-parser', () => {
|
||||
return expect(extensionConfigs).to.eql(expected);
|
||||
});
|
||||
|
||||
it('should convert method extenstions using old rules', () => {
|
||||
it('should convert method extensions using old rules', () => {
|
||||
const idl = `
|
||||
syntax = 'proto3';
|
||||
message BizRequest {}
|
||||
|
||||
@@ -18,7 +18,7 @@ import * as t from '../src/proto';
|
||||
|
||||
describe('ferry-parser', () => {
|
||||
describe('proto service', () => {
|
||||
it('should convert service extenstions', () => {
|
||||
it('should convert service extensions', () => {
|
||||
const idl = `
|
||||
syntax = "proto3";
|
||||
service Foo {
|
||||
@@ -32,7 +32,7 @@ describe('ferry-parser', () => {
|
||||
return expect(Foo.extensionConfig).to.eql(expected);
|
||||
});
|
||||
|
||||
it('should convert service extenstions with package', () => {
|
||||
it('should convert service extensions with package', () => {
|
||||
const idl = `
|
||||
syntax = "proto3";
|
||||
package example;
|
||||
|
||||
@@ -18,7 +18,7 @@ import * as t from '../src/thrift';
|
||||
|
||||
describe('ferry-parser', () => {
|
||||
describe('thrift field', () => {
|
||||
it('should convert struct field extenstions', () => {
|
||||
it('should convert struct field extensions', () => {
|
||||
const idl = `
|
||||
enum Numbers {
|
||||
ONE = 1
|
||||
@@ -82,7 +82,7 @@ describe('ferry-parser', () => {
|
||||
return expect(extensionConfigs).to.eql(expected);
|
||||
});
|
||||
|
||||
it('should convert union field extenstions', () => {
|
||||
it('should convert union field extensions', () => {
|
||||
const idl = `
|
||||
union Foo {
|
||||
1: string k1 (api.position = "query")
|
||||
@@ -97,7 +97,7 @@ describe('ferry-parser', () => {
|
||||
return expect(extensionConfigs).to.eql(expected);
|
||||
});
|
||||
|
||||
it('should convert struct field extenstions using agw specification', () => {
|
||||
it('should convert struct field extensions using agw specification', () => {
|
||||
const idl = `
|
||||
struct Foo {
|
||||
1: string k1 (agw.source = 'query')
|
||||
@@ -130,7 +130,7 @@ describe('ferry-parser', () => {
|
||||
return expect(extensionConfigs).to.eql(expected);
|
||||
});
|
||||
|
||||
it('should convert struct field extenstions using golang tag', () => {
|
||||
it('should convert struct field extensions using golang tag', () => {
|
||||
const idl = `
|
||||
struct Foo {
|
||||
1: string k1 (go.tag = "json:\\"key1\\"")
|
||||
|
||||
@@ -18,7 +18,7 @@ import * as t from '../src/thrift';
|
||||
|
||||
describe('ferry-parser', () => {
|
||||
describe('thrift function', () => {
|
||||
it('should convert function extenstions', () => {
|
||||
it('should convert function extensions', () => {
|
||||
const idl = `
|
||||
service Foo {
|
||||
BizResponse Biz1(1: BizRequest req) (api.uri = '/api/biz1')
|
||||
@@ -57,7 +57,7 @@ describe('ferry-parser', () => {
|
||||
return expect(extensionConfigs).to.eql(expected);
|
||||
});
|
||||
|
||||
it('should convert function extenstions using agw specification', () => {
|
||||
it('should convert function extensions using agw specification', () => {
|
||||
const idl = `
|
||||
service Foo {
|
||||
BizResponse Biz1(1: BizRequest req) (agw.uri = '/api/biz1')
|
||||
|
||||
@@ -18,7 +18,7 @@ import * as t from '../src/thrift';
|
||||
|
||||
describe('ferry-parser', () => {
|
||||
describe('thrift service', () => {
|
||||
it('should convert service extenstions', () => {
|
||||
it('should convert service extensions', () => {
|
||||
const idl = `
|
||||
service Foo {
|
||||
} (api.uri_prefix = 'https://example.com')
|
||||
|
||||
@@ -19,7 +19,7 @@ import { filterKeys } from './common';
|
||||
|
||||
describe('unify-parser', () => {
|
||||
describe('thrift field', () => {
|
||||
it('should convert struct field extenstions', () => {
|
||||
it('should convert struct field extensions', () => {
|
||||
const content = `
|
||||
enum Numbers {
|
||||
ONE = 1
|
||||
@@ -90,7 +90,7 @@ describe('unify-parser', () => {
|
||||
return expect(extensionConfigs).to.eql(expected);
|
||||
});
|
||||
|
||||
it('should convert union field extenstions', () => {
|
||||
it('should convert union field extensions', () => {
|
||||
const content = `
|
||||
union Foo {
|
||||
1: string k1 (api.position = "query")
|
||||
@@ -109,7 +109,7 @@ describe('unify-parser', () => {
|
||||
return expect(extensionConfigs).to.eql(expected);
|
||||
});
|
||||
|
||||
it('should convert struct field extenstions using agw specification', () => {
|
||||
it('should convert struct field extensions using agw specification', () => {
|
||||
const content = `
|
||||
struct Foo {
|
||||
1: string k1 (agw.source = 'query')
|
||||
@@ -146,7 +146,7 @@ describe('unify-parser', () => {
|
||||
return expect(extensionConfigs).to.eql(expected);
|
||||
});
|
||||
|
||||
it('should convert struct field extenstions using golang tag', () => {
|
||||
it('should convert struct field extensions using golang tag', () => {
|
||||
const content = `
|
||||
struct Foo {
|
||||
1: string k1 (go.tag = "json:\\"key1\\"")
|
||||
@@ -432,7 +432,7 @@ describe('unify-parser', () => {
|
||||
});
|
||||
|
||||
describe('proto field', () => {
|
||||
it('should convert message field extenstions', () => {
|
||||
it('should convert message field extensions', () => {
|
||||
const content = `
|
||||
syntax = "proto3";
|
||||
enum Numbers {
|
||||
@@ -499,7 +499,7 @@ describe('unify-parser', () => {
|
||||
return expect(extensionConfigs).to.eql(expected);
|
||||
});
|
||||
|
||||
it('should convert message field extenstions using old rules', () => {
|
||||
it('should convert message field extensions using old rules', () => {
|
||||
const content = `
|
||||
syntax = "proto3";
|
||||
message Foo {
|
||||
@@ -535,7 +535,7 @@ describe('unify-parser', () => {
|
||||
return expect(extensionConfigs).to.eql(expected);
|
||||
});
|
||||
|
||||
it('should convert message field extenstions with error', () => {
|
||||
it('should convert message field extensions with error', () => {
|
||||
const content = `
|
||||
syntax = "proto3";
|
||||
message Foo {
|
||||
|
||||
@@ -19,7 +19,7 @@ import { filterKeys } from './common';
|
||||
|
||||
describe('unify-parser', () => {
|
||||
describe('thrift function', () => {
|
||||
it('should convert function extenstions', () => {
|
||||
it('should convert function extensions', () => {
|
||||
const content = `
|
||||
service Foo {
|
||||
BizResponse Biz1(1: BizRequest req) (api.uri = '/api/biz1')
|
||||
@@ -62,7 +62,7 @@ describe('unify-parser', () => {
|
||||
return expect(extensionConfigs).to.eql(expected);
|
||||
});
|
||||
|
||||
it('should convert function extenstions using agw specification', () => {
|
||||
it('should convert function extensions using agw specification', () => {
|
||||
const content = `
|
||||
service Foo {
|
||||
BizResponse Biz1(1: BizRequest req) (agw.uri = '/api/biz1')
|
||||
@@ -178,7 +178,7 @@ describe('unify-parser', () => {
|
||||
});
|
||||
|
||||
describe('proto method', () => {
|
||||
it('should convert method extenstions', () => {
|
||||
it('should convert method extensions', () => {
|
||||
const content = `
|
||||
syntax = 'proto3';
|
||||
message BizRequest {}
|
||||
|
||||
@@ -19,7 +19,7 @@ import { filterKeys } from './common';
|
||||
|
||||
describe('unify-parser', () => {
|
||||
describe('thrift service', () => {
|
||||
it('should convert service extenstions', () => {
|
||||
it('should convert service extensions', () => {
|
||||
const fileContent = `
|
||||
service Foo {
|
||||
} (api.uri_prefix = 'https://example.com')
|
||||
@@ -41,7 +41,7 @@ describe('unify-parser', () => {
|
||||
});
|
||||
|
||||
describe('proto service', () => {
|
||||
it('should convert service extenstions', () => {
|
||||
it('should convert service extensions', () => {
|
||||
const fileContent = `
|
||||
syntax = "proto3";
|
||||
service Foo {
|
||||
|
||||
Reference in New Issue
Block a user