Skip to content

Commit

Permalink
Converts tests to typescript (#116)
Browse files Browse the repository at this point in the history
Changes test.js to test.ts
Adds test.ts to tsconfig so it is built on npm run build
Lints test file now with tslint

Signed-off-by: campionfellin <campionfellin@gmail.com>
  • Loading branch information
campionfellin authored and grant committed Apr 17, 2018
1 parent bd43954 commit 118e6bb
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 27 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
*.js
!tests/*.js
*.DS_Store
*.log
npm-debug.log*
Expand Down
49 changes: 24 additions & 25 deletions tests/test.js → tests/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,29 +42,28 @@ describe.skip('Test clasp create function', () => {
});
});


/**
TODO: Test these commands and configs.
# Commands:
[ ] clasp;
[ ] clasp login';
[ ] clasp login --no-localhost;
[ ] clasp logout;
[ ] clasp create "myTitle"
[x] clasp create <untitled>
[x] clasp list
[ ] clasp clone <scriptId>
[ ] clasp pull
[ ] echo '// test' >> index.js && clasp push
[ ] clasp open
[ ] clasp deployments
[ ] clasp deploy [version] [description]
[ ] clasp redeploy <deploymentId> <version> <description>
[ ] clasp version [description]
[ ] clasp versions
# Configs
- .js and .gs files
- Ignored files
*/
* TODO: Test these commands and configs.
*
* # Commands:
* [ ] clasp;
* [ ] clasp login';
* [ ] clasp login --no-localhost;
* [ ] clasp logout;
* [ ] clasp create "myTitle"
* [x] clasp create <untitled>
* [x] clasp list
* [ ] clasp clone <scriptId>
* [ ] clasp pull
* [ ] echo '// test' >> index.js && clasp push
* [ ] clasp open
* [ ] clasp deployments
* [ ] clasp deploy [version] [description]
* [ ] clasp redeploy <deploymentId> <version> <description>
* [ ] clasp version [description]
* [ ] clasp versions
*
* # Configs
* - .js and .gs files
* - Ignored files
*/
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"moduleResolution": "node",
"files": [
"index.ts"
"index.ts",
"tests/test.ts"
]
}

0 comments on commit 118e6bb

Please sign in to comment.