@quenty/lipsum 14.17.2 → 14.18.0-canary.544.de8fcee.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -2
- package/package.json +8 -8
- package/src/Shared/LipsumUtils.spec.lua +29 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
# [14.18.0-canary.544.de8fcee.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/lipsum@14.17.1...@quenty/lipsum@14.18.0-canary.544.de8fcee.0) (2025-04-01)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Fix existing tests ([655787c](https://github.com/Quenty/NevermoreEngine/commit/655787ced1139136e12f81800e229aa076731561))
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/lipsum",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.18.0-canary.544.de8fcee.0",
|
|
4
4
|
"description": "A Lorem Ipsum generator in Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
"Quenty"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@quenty/loader": "
|
|
31
|
-
"@quenty/randomutils": "
|
|
32
|
-
"@quenty/string": "
|
|
30
|
+
"@quenty/loader": "10.8.0",
|
|
31
|
+
"@quenty/randomutils": "6.10.0-canary.544.de8fcee.0",
|
|
32
|
+
"@quenty/string": "3.3.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@quenty/maid": "
|
|
36
|
-
"@quenty/textserviceutils": "
|
|
37
|
-
"@quenty/uiobjectutils": "
|
|
35
|
+
"@quenty/maid": "3.4.0",
|
|
36
|
+
"@quenty/textserviceutils": "13.18.0-canary.544.de8fcee.0",
|
|
37
|
+
"@quenty/uiobjectutils": "6.16.0-canary.544.de8fcee.0"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "de8fcee995fcdae464964357b4c770c03f4c7e03"
|
|
43
43
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
local require = require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).bootstrapStory(script)
|
|
2
|
+
|
|
3
|
+
local Jest = require("Jest")
|
|
4
|
+
local LipsumUtils = require("LipsumUtils")
|
|
5
|
+
|
|
6
|
+
local it = Jest.Globals.it
|
|
7
|
+
local expect = Jest.Globals.expect
|
|
8
|
+
|
|
9
|
+
it("returns a randomly generated username", function()
|
|
10
|
+
expect(LipsumUtils.username()).toEqual(expect.any("string"))
|
|
11
|
+
end)
|
|
12
|
+
|
|
13
|
+
it("returns a randomly generated word", function()
|
|
14
|
+
expect(LipsumUtils.word()).toEqual(expect.any("string"))
|
|
15
|
+
end)
|
|
16
|
+
|
|
17
|
+
it("returns a fixed number of words", function()
|
|
18
|
+
local randomWords = LipsumUtils.words(5)
|
|
19
|
+
local words = string.split(randomWords, " ")
|
|
20
|
+
|
|
21
|
+
expect(words).toHaveLength(5)
|
|
22
|
+
end)
|
|
23
|
+
|
|
24
|
+
it("returns a fixed number of words in a sentence", function()
|
|
25
|
+
local randomSentence = LipsumUtils.sentence(10)
|
|
26
|
+
local words = string.split(randomSentence, " ")
|
|
27
|
+
|
|
28
|
+
expect(words).toHaveLength(10)
|
|
29
|
+
end)
|