summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Tests/builtins
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2021-09-01 21:56:55 -0400
committerLinus Groh <mail@linusgroh.de>2021-09-02 17:56:42 +0100
commit990dd037d2ba029332619641ed43d4896b4a679d (patch)
treeaba95cb2dd198996a8361fa9bf39ff2f8b59e264 /Userland/Libraries/LibJS/Tests/builtins
parent940c023e09f4750615b97d1eaef7b2b6c997438f (diff)
downloadserenity-990dd037d2ba029332619641ed43d4896b4a679d.zip
LibJS: Implement Intl.Locale.prototype.toString()
This isn't particularly testable yet without the Intl.Locale constructor but having this defined will make testing the constructor possible. So more specific tests for this prototype will come later.
Diffstat (limited to 'Userland/Libraries/LibJS/Tests/builtins')
-rw-r--r--Userland/Libraries/LibJS/Tests/builtins/Intl/Locale/Locale.prototype.toString.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Tests/builtins/Intl/Locale/Locale.prototype.toString.js b/Userland/Libraries/LibJS/Tests/builtins/Intl/Locale/Locale.prototype.toString.js
new file mode 100644
index 0000000000..caeac0c9ac
--- /dev/null
+++ b/Userland/Libraries/LibJS/Tests/builtins/Intl/Locale/Locale.prototype.toString.js
@@ -0,0 +1,3 @@
+test("length is 0", () => {
+ expect(Intl.Locale.prototype.toString).toHaveLength(0);
+});