Skip to content
This repository has been archived by the owner on Jun 21, 2019. It is now read-only.

Commit

Permalink
review modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelcolomb committed Nov 25, 2016
1 parent c48b06d commit 44db93d
Show file tree
Hide file tree
Showing 21 changed files with 38 additions and 1,267 deletions.
18 changes: 2 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,20 +132,6 @@ npm run prod
Use `Control-C` to kill the server. Note that `node` must be on your path and that
the configuration for the target environment must be present in the `config` directory.


If you would like to see the available commands, run
``` shell
node api.js -h
```

We currently support

| Argument Parameter | Description |
| ------------------ | ----------- |
| -h | Show help |
| -t | Run tests |


## Documentation

All documentation is available on the [project wiki](https://github.com/HackIllinois/api-2017/wiki).
Expand All @@ -162,9 +148,9 @@ the pull-request detailing the issue preventing a merge.

## Testing

Please set the proper enviornment variables before testing. You can run the tests locally with
Environment variables should be set in `test.config`. A template is found within the `config` directory.

``` shell
node api.js -t
node run test
```

2 changes: 0 additions & 2 deletions api/v1/services/TokenService.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ module.exports.generateToken = function(user, scope){
var tokenVal = utils.crypto.generateResetToken();
var userId = user.get('id');

//Token.where({user_id: userId, type: scope}).fetchAll().then(function(data){console.log(data)});

return Token
.where({user_id: userId, type: scope}).fetchAll()
.then(function(tokens) {
Expand Down
109 changes: 0 additions & 109 deletions test/_end_to_end/auth/admin.js

This file was deleted.

137 changes: 0 additions & 137 deletions test/_end_to_end/auth/hacker.js

This file was deleted.

10 changes: 0 additions & 10 deletions test/_end_to_end/auth/index.js

This file was deleted.

Loading

0 comments on commit 44db93d

Please sign in to comment.