mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:28:12 +00:00
Libraries: Move to Userland/Libraries/
This commit is contained in:
parent
dc28c07fa5
commit
13d7c09125
1857 changed files with 266 additions and 274 deletions
|
@ -1,61 +0,0 @@
|
|||
test("valid 'use strict; directive", () => {
|
||||
expect(
|
||||
(() => {
|
||||
"use strict";
|
||||
return isStrictMode();
|
||||
})()
|
||||
).toBeTrue();
|
||||
expect(
|
||||
// prettier-ignore
|
||||
(() => {
|
||||
'use strict';
|
||||
return isStrictMode();
|
||||
})()
|
||||
).toBeTrue();
|
||||
});
|
||||
|
||||
test("invalid 'use strict; directive", () => {
|
||||
expect(
|
||||
(() => {
|
||||
" use strict ";
|
||||
return isStrictMode();
|
||||
})()
|
||||
).toBeFalse();
|
||||
expect(
|
||||
(() => {
|
||||
`use strict`;
|
||||
return isStrictMode();
|
||||
})()
|
||||
).toBeFalse();
|
||||
expect(
|
||||
(() => {
|
||||
"use\
|
||||
strict";
|
||||
return isStrictMode();
|
||||
})()
|
||||
).toBeFalse();
|
||||
expect(
|
||||
(() => {
|
||||
"use\ strict";
|
||||
return isStrictMode();
|
||||
})()
|
||||
).toBeFalse();
|
||||
expect(
|
||||
(() => {
|
||||
"use \163trict";
|
||||
return isStrictMode();
|
||||
})()
|
||||
).toBeFalse();
|
||||
expect(
|
||||
(() => {
|
||||
`"use strict"`;
|
||||
return isStrictMode();
|
||||
})()
|
||||
).toBeFalse();
|
||||
expect(
|
||||
(() => {
|
||||
"use strict" + 1;
|
||||
return isStrictMode();
|
||||
})()
|
||||
).toBeFalse();
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue