Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

Commit

Permalink
fix: again
Browse files Browse the repository at this point in the history
  • Loading branch information
Soontao committed Jul 7, 2020
1 parent 6f5c126 commit 702524f
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "@odata/server",
"version": "0.2.13",
"description": "OData(V4) Server",
"main": "lib/lib/index.js",
"typings": "lib/lib/index",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"scripts": {
"prebuild": "rimraf lib",
"build": "tsc",
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './lib/index';
11 changes: 9 additions & 2 deletions src/test/execute.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Product, Category } from './model/model';
import * as fs from 'fs';
import * as path from 'path';
import * as streamBuffers from 'stream-buffers';
import { platform } from 'os';


const extend = require('extend');
Expand Down Expand Up @@ -289,8 +290,14 @@ describe('OData execute', () => {
});
});
});

describe('Stream properties', () => {

let d = describe.skip

if (platform() == "linux") {
d = describe
}

d('Stream properties', () => {
it('stream property POST', () => {
const readableStrBuffer = new streamBuffers.ReadableStreamBuffer();
readableStrBuffer.put('tmp.png');
Expand Down
2 changes: 1 addition & 1 deletion src/test/http.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ describe('OData HTTP', () => {
d = describe
}

describe('Stream properties', () => {
d('Stream properties', () => {
it('stream property POST', (done) => {
const readableStrBuffer = new streamBuffers.ReadableStreamBuffer();
const req = request.post(`http://localhost:3002/ImagesControllerEntitySet(1)/Data`);
Expand Down
9 changes: 8 additions & 1 deletion src/test/server.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Meta, Media, TestEntity, MetaTestServer, CompoundKey, EmptyEntity, Base
import { ProductPromise, CategoryPromise } from './model/ModelsForPromise';
import { GeneratorProduct, GeneratorCategory } from './model/ModelsForGenerator';
import { ObjectID } from 'mongodb';
import { platform } from 'os';

const extend = require('extend');
const categories = require('./model/categories');
Expand Down Expand Up @@ -1204,7 +1205,13 @@ export function testFactory(createTest: any) {
});
});

describe('Stream properties', () => {
let d = describe.skip

if (platform() == "linux") {
d = describe
}

d('Stream properties', () => {
createTest('should return stream property entity set result', TestServer, 'GET /ImagesControllerEntitySet', {
statusCode: 200,
body: {
Expand Down

0 comments on commit 702524f

Please sign in to comment.