orc-me 1.1.5 → 1.1.7

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.
@@ -13,8 +13,8 @@ jobs:
13
13
  build:
14
14
  runs-on: ubuntu-latest
15
15
  steps:
16
- - uses: actions/checkout@v2
17
- - uses: actions/setup-node@v2
16
+ - uses: actions/checkout@v4
17
+ - uses: actions/setup-node@v3
18
18
  with:
19
19
  node-version: lts/*
20
20
  - run: npm install
@@ -24,8 +24,8 @@ jobs:
24
24
  needs: build
25
25
  runs-on: ubuntu-latest
26
26
  steps:
27
- - uses: actions/checkout@v2
28
- - uses: actions/setup-node@v2
27
+ - uses: actions/checkout@v4
28
+ - uses: actions/setup-node@v3
29
29
  with:
30
30
  node-version: lts/*
31
31
  registry-url: https://registry.npmjs.org/
package/README.md CHANGED
@@ -21,17 +21,17 @@
21
21
  # Examples
22
22
 
23
23
  ``` javascript
24
- const orcMe = require("orc-me");
24
+ const orcMe = require('orc-me');
25
25
 
26
26
  function capitalizeFirstLetter(string) {
27
27
  return string.charAt(0).toUpperCase() + string.slice(1);
28
28
  };
29
29
 
30
- const orcThreeNames = capitalizeFirstLetter(orcMe()) + " " + capitalizeFirstLetter(orcMe()) + " " + capitalizeFirstLetter(orcMe());
31
- const orcTwoNames = capitalizeFirstLetter(orcMe()) + " " + capitalizeFirstLetter(orcMe());
30
+ const orcThreeNames = capitalizeFirstLetter(orcMe()) + ' ' + capitalizeFirstLetter(orcMe()) + ' ' + capitalizeFirstLetter(orcMe());
31
+ const orcTwoNames = capitalizeFirstLetter(orcMe()) + ' ' + capitalizeFirstLetter(orcMe());
32
32
 
33
- console.log("Orc battle started!");
34
- console.log(orcThreeNames + " ⚔️ " + orcTwoNames);
33
+ console.log('Orc battle started!');
34
+ console.log(orcThreeNames + ' ⚔️ ' + orcTwoNames);
35
35
  ```
36
36
 
37
37
  # Result of the example above
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * orchish - 👹 Generate a random orc name
3
- * @version: v1.1.5
3
+ * @version: v1.1.7
4
4
  * @link: https://github.com/tutyamxx/orc-me
5
5
  * @license: MIT
6
6
  **/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orc-me",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "Generate a random orc name",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,6 +21,6 @@
21
21
  "author": "tuty",
22
22
  "license": "MIT",
23
23
  "devDependencies": {
24
- "jest": "^26.4.2"
24
+ "jest": "^29.7.0"
25
25
  }
26
26
  }
@@ -1,7 +1,8 @@
1
- const orcMe = require("../index.js");
1
+ const orcMe = require('../index.js');
2
2
 
3
- test("Check if it returns a random Orc name with a length between 2 and 5 chars", () => {
3
+ test('Check if it returns a random Orc name with a length between 2 and 5 chars', () => {
4
4
  const expectedString = expect.stringMatching(/^[a-z]{2,5}$/);
5
5
 
6
6
  expect(orcMe()).toEqual(expectedString);
7
+ expect(orcMe()).not.toBe('');
7
8
  });