forked from jaystack/odata-v4-parser
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
1,513 additions
and
2,724 deletions.
There are no files selected for viewing
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
Large diffs are not rendered by default.
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
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
File renamed without changes.
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,18 @@ | ||
import { defaultParser } from '../src'; | ||
|
||
describe('Issue Related Test Suite', () => { | ||
|
||
it('should support paser uri with geography - Polygon', () => { | ||
|
||
const t = defaultParser.odataUri("/Products?$filter=geo.intersects(Location, geography'SRID=12345;Polygon((-127.89734578345 45.234534534,-127.89734578345 45.234534534,-127.89734578345 45.234534534,-127.89734578345 45.234534534))')"); | ||
expect(t).not.toBeUndefined(); | ||
|
||
}); | ||
|
||
it('should support paser uri with geography - POLYGON', () => { | ||
|
||
const t = defaultParser.odataUri("/Products?$filter=geo.intersects(Location, geography'SRID=12345;POLYGON((-127.89734578345 45.234534534,-127.89734578345 45.234534534,-127.89734578345 45.234534534,-127.89734578345 45.234534534))')"); | ||
expect(t).not.toBeUndefined(); | ||
|
||
}); | ||
}); |
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,19 @@ | ||
import { ServiceMetadata } from '@odata/metadata'; | ||
import { defaultParser } from '../src'; | ||
|
||
|
||
describe('OData URI Test Suite', () => { | ||
|
||
const schoolMeta = ServiceMetadata.processMetadataJson(require('./resources/school.edmx.json')); | ||
|
||
it('should support parser uri', () => { | ||
|
||
defaultParser.odataUri('/Categories?$skip=30'); | ||
defaultParser.odataUri('/Categories(10)?$expand=A,C&$select=D,E'); | ||
const ast = defaultParser.odataUri('/Classes?$expand=students/student', { metadata: schoolMeta.edmx }); | ||
|
||
expect(ast).not.toBeUndefined(); | ||
|
||
}); | ||
|
||
}); |
File renamed without changes.
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