-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(definitions): fix linter issues
- Loading branch information
Showing
162 changed files
with
2,261 additions
and
3,367 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,44 @@ | ||
import {describe, it} from 'vitest'; | ||
import TestHelper from '@test/test-helper'; | ||
import path from 'path'; | ||
|
||
const jsonSchema = require('@bindings/amqp/0.2.0/channel.json'); | ||
|
||
describe('Channel', () => { | ||
it('is: routingKey', () => TestHelper.objectIsValid( | ||
jsonSchema, | ||
path.resolve(__dirname, './examples/is routing key.json'), | ||
)); | ||
|
||
it('is: queue', () => TestHelper.objectIsValid( | ||
jsonSchema, | ||
path.resolve(__dirname, './examples/is queue.json'), | ||
)); | ||
|
||
it.skip('empty', () => TestHelper.objectIsNotValid( | ||
jsonSchema, | ||
path.resolve(__dirname, './empty.json'), | ||
['must have required property \'is\''] | ||
)); | ||
|
||
it.skip('without required properties', () => TestHelper.objectIsNotValid( | ||
jsonSchema, | ||
path.resolve(__dirname, './without required properties.json'), | ||
['must have required property \'is\''] | ||
)); | ||
|
||
it.skip('only required properties', () => TestHelper.objectIsValid( | ||
jsonSchema, | ||
path.resolve(__dirname, './only required properties.json'), | ||
)); | ||
|
||
it('extended', () => TestHelper.objectIsValid( | ||
jsonSchema, | ||
path.resolve(__dirname, './extended.json'), | ||
)); | ||
|
||
it('wrongly extended', () => TestHelper.wronglyExtended( | ||
jsonSchema, | ||
path.resolve(__dirname, './wrongly extended.json') | ||
)); | ||
}); |
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,37 @@ | ||
import {describe, it} from 'vitest'; | ||
import TestHelper from '@test/test-helper'; | ||
import path from 'path'; | ||
|
||
const jsonSchema = require('@bindings/amqp/0.2.0/message.json'); | ||
|
||
describe('Message', () => { | ||
it('example', () => TestHelper.objectIsValid( | ||
jsonSchema, | ||
path.resolve(__dirname, './example.json') | ||
)); | ||
|
||
it('empty', () => TestHelper.objectIsValid( | ||
jsonSchema, | ||
path.resolve(__dirname, './empty.json') | ||
)); | ||
|
||
it('without required properties', () => TestHelper.objectIsValid( | ||
jsonSchema, | ||
path.resolve(__dirname, './without required properties.json') | ||
)); | ||
|
||
it('only required properties', () => TestHelper.objectIsValid( | ||
jsonSchema, | ||
path.resolve(__dirname, './only required properties.json') | ||
)); | ||
|
||
it('extended', () => TestHelper.objectIsValid( | ||
jsonSchema, | ||
path.resolve(__dirname, './extended.json') | ||
)); | ||
|
||
it('wrongly extended', () => TestHelper.wronglyExtended( | ||
jsonSchema, | ||
path.resolve(__dirname, './wrongly extended.json') | ||
)); | ||
}); |
This file was deleted.
Oops, something went wrong.
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,37 @@ | ||
import {describe, it} from 'vitest'; | ||
import TestHelper from '@test/test-helper'; | ||
import path from 'path'; | ||
|
||
const jsonSchema = require('@bindings/amqp/0.2.0/operation.json'); | ||
|
||
describe('Operation', () => { | ||
it('example', () => TestHelper.objectIsValid( | ||
jsonSchema, | ||
path.resolve(__dirname, './example.json') | ||
)); | ||
|
||
it('empty', () => TestHelper.objectIsValid( | ||
jsonSchema, | ||
path.resolve(__dirname, './empty.json') | ||
)); | ||
|
||
it('without required properties', () => TestHelper.objectIsValid( | ||
jsonSchema, | ||
path.resolve(__dirname, './without required properties.json') | ||
)); | ||
|
||
it('only required properties', () => TestHelper.objectIsValid( | ||
jsonSchema, | ||
path.resolve(__dirname, './only required properties.json') | ||
)); | ||
|
||
it('extended', () => TestHelper.objectIsValid( | ||
jsonSchema, | ||
path.resolve(__dirname, './extended.json') | ||
)); | ||
|
||
it('wrongly extended', () => TestHelper.wronglyExtended( | ||
jsonSchema, | ||
path.resolve(__dirname, './wrongly extended.json') | ||
)); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
test/bindings/amqp/0.2.0/server/without required properties.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.