Skip to content

Commit 632ba6b

Browse files
1. Rearrange unit test files directory structure\n 2. Move sample files to separate folder in spec\n 3. Add tests for LargeFileUploadUtil\n 3.Clean browserfiy action
1 parent a72448b commit 632ba6b

23 files changed

+55
-24
lines changed

.gitignore

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ samples/typescript/graph-typings.d.ts
1717
samples/typescript/sample.js.map
1818
src/index.d.ts
1919

20-
spec/types/secrets*
21-
spec/types/*.js
22-
spec/types/*.d.ts
23-
spec/types/*.js.map
20+
spec/secrets.ts
21+
22+
spec/**/*.js
23+
spec/**/*.d.ts
24+
spec/**/*.js.map

.jshintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"esnext": "true"
3+
}

browser-wrapper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// make MicrosoftGraph globally accessible
22
// MicrosoftGraph.api() can be called directly
33
window.MicrosoftGraph = require('./lib/src/index.js');
4-
Object.assign(window, require("./lib/src/LargeFileUploadTask.js"));
4+
window.LargeFileUploadTask = require("./lib/src/LargeFileUploadTask.js").LargeFileUploadTask;

lib/graph-js-sdk-web.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"scripts": {
2121
"build": "tsc && node node-browserify.js > lib/graph-js-sdk-web.js && uglifyjs ./lib/graph-js-sdk-web.js --output ./lib/graph-js-sdk-web.js",
2222
"test": "mocha lib/spec/core",
23-
"test:types": "tsc --p spec/types && mocha spec/types"
23+
"test:types": "tsc --p spec && mocha spec/types",
24+
"test:tasks": "tsc --p spec && mocha spec/tasks"
2425
},
2526
"dependencies": {
2627
"es6-promise": "^4.1.0",
File renamed without changes.

0 commit comments

Comments
 (0)