{"size": 1086, "ext": "js", "max_stars_repo_path": "backend/test.js", "max_stars_repo_name": "nadunc/salon-js", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "backend/test.js", "max_issues_repo_name": "nadunc/salon-js", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "backend/test.js", "max_forks_repo_name": "nadunc/salon-js", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.6818181818, "max_line_length": 59, "alphanum_fraction": 0.426335175}
let chai = require('chai');
let chaiHttp = require('chai-http');
let server = require('./index');
let should = chai.should();


chai.use(chaiHttp);

describe('Stylists', () => {

    describe('/GET stylists', () => {
        it('it should GET all the stylists', (done) => {
            chai.request(server)
                .get('/stylists')
                .end((err, res) => {
                    res.should.have.status(200);
                    res.body.success.should.be.a('boolean')
                    res.body.data.should.be.a('array');
                    done();
                });
        });
    });

});



describe('Salon', () => {

    describe('/GET salon by id', () => {
        it('it should GET the salon by id', (done) => {
            chai.request(server)
                .get('/salons/1')
                .end((err, res) => {
                    res.should.have.status(200);
                    res.body.success.should.be.a('boolean')
                    res.body.data.should.be.a('object');
                    done();
                });
        });
    });


});