提交 0078bd90 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Rename test/test_xxxx.js to test/test-xxxx.js

上级 afa4c792
...@@ -21,15 +21,15 @@ const workerFiles = ...@@ -21,15 +21,15 @@ const workerFiles =
]; ];
const nodeTests = const nodeTests =
[ [
'test/test_mediasoup.js', 'test/test-mediasoup.js',
'test/test_Server.js', 'test/test-Server.js',
'test/test_Room.js', 'test/test-Room.js',
'test/test_Peer.js', 'test/test-Peer.js',
'test/test_Transport.js', 'test/test-Transport.js',
'test/test_RtpReceiver.js', 'test/test-RtpReceiver.js',
'test/test_extra.js' 'test/test-extra.js'
// NOTE: Disable this test until fixed // NOTE: Disable this test until adapted.
// 'test/test_scene_1.js' // 'test/test-scene-1.js'
]; ];
gulp.task('lint:node', () => gulp.task('lint:node', () =>
...@@ -91,14 +91,17 @@ gulp.task('rtpcapabilities', () => ...@@ -91,14 +91,17 @@ gulp.task('rtpcapabilities', () =>
let supportedRtpCapabilities = require('./lib/supportedRtpCapabilities'); let supportedRtpCapabilities = require('./lib/supportedRtpCapabilities');
return gulp.src('worker/src/RTC/Room.cpp') return gulp.src('worker/src/RTC/Room.cpp')
.pipe(replace(/(const std::string supportedRtpCapabilities =).*/, // Let's generate valid syntax as expected by clang-format rules.
`$1 R"(${JSON.stringify(supportedRtpCapabilities)})";`)) .pipe(replace(/(const std::string supportedRtpCapabilities =).*\r?\n.*/,
`$1\n\t\t\t R"(${JSON.stringify(supportedRtpCapabilities)})";`))
.pipe(gulp.dest('worker/src/RTC/')) .pipe(gulp.dest('worker/src/RTC/'))
.pipe(touch()); .pipe(touch());
}); });
gulp.task('lint', gulp.series('lint:node', 'lint:worker')); gulp.task('lint', gulp.series('lint:node', 'lint:worker'));
gulp.task('format', gulp.series('format:worker'));
gulp.task('test', gulp.series('test:node', 'test:worker')); gulp.task('test', gulp.series('test:node', 'test:worker'));
gulp.task('default', gulp.series('lint', 'test')); gulp.task('default', gulp.series('lint', 'test'));
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论