Supprimer les tests et les commentaires obsolètes dans tester.js
This commit is contained in:
@@ -1,19 +1,5 @@
|
|||||||
const storageManager = require('../src/data/storageManager');
|
|
||||||
const videoManager = require('../src/video/videoManager');
|
|
||||||
const measureManager = require('../src/measure/measureManager');
|
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
// console.log('Testing database functions...');
|
|
||||||
|
|
||||||
// try {
|
|
||||||
// storageManager.createFolder('test_folder');
|
|
||||||
// console.log('1 - Folder created');
|
|
||||||
// storageManager.deleteFolder('test_folder');
|
|
||||||
// console.log('2 - Folder deleted');
|
|
||||||
// } catch (error) {
|
|
||||||
// console.error('Error testing database functions:', error);
|
|
||||||
// }
|
|
||||||
|
|
||||||
function getSmileImage() {
|
function getSmileImage() {
|
||||||
return path.join(__dirname, '../sample/smile.png');
|
return path.join(__dirname, '../sample/smile.png');
|
||||||
}
|
}
|
||||||
@@ -22,35 +8,5 @@ function getCatVideo() {
|
|||||||
return path.join(__dirname, '../sample/cat.mp4');
|
return path.join(__dirname, '../sample/cat.mp4');
|
||||||
}
|
}
|
||||||
|
|
||||||
// //test de lancement d'une création de vidéo sur le projet 1
|
|
||||||
// // videoManager.createVideo(1).then(res => {
|
|
||||||
// // console.log('3 - Video created:', res);
|
|
||||||
// // }).catch(err => {
|
|
||||||
// // console.error('Error creating video:', err);
|
|
||||||
// // });
|
|
||||||
// // async function run() {
|
|
||||||
// // var Path = await measureManager.getPathFromIds(1, 1);
|
|
||||||
// // console.log(Path);
|
|
||||||
// // }
|
|
||||||
|
|
||||||
// // run().catch(err => {
|
|
||||||
// // console.error('Error:', err);
|
|
||||||
// // });
|
|
||||||
|
|
||||||
// var pathList = [
|
|
||||||
// 'storage/1/images/1.jpg',
|
|
||||||
// 'storage/1/images/10.jpg',
|
|
||||||
// 'storage/1/images/20.jpg',
|
|
||||||
// 'storage/1/images/30.jpg',
|
|
||||||
// ];
|
|
||||||
// videoManager.createVideoWithList(1, pathList).then(res => {
|
|
||||||
// console.log('3 - Video created:', res);
|
|
||||||
// return storageManager.deleteFile(res);
|
|
||||||
// }).then(res => {
|
|
||||||
// console.log('4 - Video deleted:', res);
|
|
||||||
// }).catch(err => {
|
|
||||||
// console.error('Error:', err);
|
|
||||||
// });
|
|
||||||
|
|
||||||
exports.getSmileImage = getSmileImage;
|
exports.getSmileImage = getSmileImage;
|
||||||
exports.getCatVideo = getCatVideo;
|
exports.getCatVideo = getCatVideo;
|
||||||
Reference in New Issue
Block a user