Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test.js? #19

Open
NouraldinS opened this issue Aug 31, 2018 · 2 comments
Open

test.js? #19

NouraldinS opened this issue Aug 31, 2018 · 2 comments

Comments

@NouraldinS
Copy link

const sign_up = require('./backend_test/sign_up');
const sign_in = require('./backend_test/sign_in');
const addUser_test = require('./db_test/addUser_test');
const checkUser_test = require('./db_test/checkUser_DB');

I wonder what is this file for? Or at least what was it intended to be for?

@kannanhassouna
Copy link
Collaborator

that file to run all tests file (db_test file , route_test file ) in just a command line (npm test)
okay let me explain that when you require any file , that file will be executed .
if you have something better tell me 💯 , thanks @NoureldeanSaed

@NouraldinS
Copy link
Author

@knanahassouna1 So why assigning constants? You could just require...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants