Files
001code-html--cocos/scratch-gui/test/unit/util/translate-video.test.js
刘宇飞 6e0a1fbcbb Initial commit of 001code-html Scratch frontend project.
Includes scratch-gui, scratch-vm, scratch-blocks, scratch-render, scratch-l10n, and deployment config.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-16 15:37:45 +08:00

26 lines
821 B
JavaScript

describe('no-op', () => {
test('no-op', () => {});
});
// tw: we intentionally break this test
/*
import {translateVideo} from '../../../src/lib/libraries/decks/translate-video.js';
describe('translateVideo', () => {
test('returns the id if it is not found', () => {
expect(translateVideo('not-a-key', 'en')).toEqual('not-a-key');
});
test('returns the expected id for Japanese', () => {
expect(translateVideo('intro-move-sayhello', 'ja')).toEqual('v2c2f3y2sc');
});
test('returns the expected id for English', () => {
expect(translateVideo('intro-move-sayhello', 'en')).toEqual('rpjvs3v9gj');
});
test('returns the English id for non-existent locales', () => {
expect(translateVideo('intro-move-sayhello', 'yum')).toEqual('rpjvs3v9gj');
});
});
*/