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

Jeff feature branch #11

Merged
merged 2 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
740 changes: 740 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"start": "NODE_ENV=production node server/server.js",
"build": "NODE_ENV=production webpack",
"dev": "NODE_ENV=development webpack serve --open & nodemon server/server.js",
"test": "jest"
"test": "jest"
},
"repository": {
"type": "git",
Expand All @@ -23,11 +23,13 @@
"@babel/core": "^7.23.3",
"@babel/preset-env": "^7.23.3",
"@babel/preset-react": "^7.23.3",
"@testing-library/react": "^14.1.0",
"babel-loader": "^9.1.3",
"css-loader": "^6.8.1",
"jest": "^29.7.0",
"nodemon": "^3.0.1",
"style-loader": "^3.3.3",
"supertest": "^6.3.3",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.15.1"
Expand Down
1 change: 1 addition & 0 deletions tests/AllOutfits.test.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
const request = require('supertest')
1 change: 1 addition & 0 deletions tests/AuthController.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
const request = require('supertest')
1 change: 1 addition & 0 deletions tests/ChicModel.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
const request = require('supertest')
12 changes: 12 additions & 0 deletions tests/Dashboard.test.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//test that SSID is a number
const request = require('supertest')


describe('rendering SSID to the page', () =>{
// I'll figure out how to do this tomorrow - react testing library
});

// it('SSID should be a number', () => {

// });
expect(typeof(SSID)).toEqual('Number')
1 change: 1 addition & 0 deletions tests/Outfit.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
const request = require('supertest')
7 changes: 7 additions & 0 deletions tests/Outfit.test.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//test that outfitImage is a path
//test that outfitDes is... something
const request = require('supertest')

describe('verify that outfitImage and outfitDes are the appropriate datatypes', ()=>{

})
2 changes: 2 additions & 0 deletions tests/UploadOutfit.test.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
//test that SSID is an object
const request = require('supertest')
3 changes: 3 additions & 0 deletions tests/auth.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//test middleware
//test that res.locals.userId != null/undefined
const request = require('supertest')
1 change: 1 addition & 0 deletions tests/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
const request = require('supertest')
Empty file removed tests/outfit.test.js
Empty file.
20 changes: 20 additions & 0 deletions tests/s3.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// needs to connect to aws
// needs to retrieve bucketname, region, accessKeyId, secretAccessKey from aws
// file.filename && file.path need to be values of file
// test createReadStream is working somehow

// getObject might be specific to aws, which explains why documentation all appears to have a layer of abstraction. find some way to test it

const request = require('supertest');

describe('verifying that there is a connection to the AWS database' ()=>{

});

describe('uploadFile test', () =>{

})

describe('getFileStream test', ()=>{

})
5 changes: 5 additions & 0 deletions tests/sever.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
//test routes?
// research how to test middleware
const request = require('supertest')

// I'll figure out how to do this tomorrow
15 changes: 15 additions & 0 deletions tests/signup.test.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//test that username and password are strings?
//test for signup handler
const request = require('supertest');

describe('Signup test', () => {

})

describe('signupHandler test', () => {

})

describe('return statement test', () => {

})