@beauraines/bacon-ipsum-cli 0.1.0 → 0.1.2
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/.github/workflows/publish.yml +1 -1
- package/CHANGELOG.md +15 -0
- package/package.json +1 -1
- package/cli.test.js +0 -24
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
|
+
|
|
5
|
+
### 0.1.2 (2024-05-26)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* initial commit cli ([ef8cfe9](https://github.com/beauraines/bacon-ipsum-cli/commit/ef8cfe97bce737cd564d4d9f12ee6c03ddd20a0c))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* lintfixes ([fcb35bc](https://github.com/beauraines/bacon-ipsum-cli/commit/fcb35bc03d54028b30aa0cc988433ebd17e04040))
|
package/package.json
CHANGED
package/cli.test.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
const { describe, expect, it } = require('jest');
|
|
2
|
-
|
|
3
|
-
describe('utilities', () => {
|
|
4
|
-
it('should return multiple paragraphs', () => {
|
|
5
|
-
const paragraphs = 2;
|
|
6
|
-
// Make API call, capture output
|
|
7
|
-
const output = `Turkey flank meatball, ham t-bone pancetta ham hock drumstick beef boudin ground round short loin pig buffalo. Flank pork pork loin chislic spare ribs. Pork loin tenderloin kevin, bresaola picanha ham hock shoulder shank venison rump. Shankle short loin fatback venison salami. Capicola short ribs landjaeger, beef ribs shankle bacon meatloaf sirloin frankfurter venison chicken ham hock burgdoggen chuck. Burgdoggen tri-tip salami beef shoulder boudin flank andouille pancetta tongue fatback short ribs t-bone.
|
|
8
|
-
Tongue venison ham tri-tip. Pig porchetta bacon, kielbasa pork chop spare ribs turducken landjaeger brisket. Capicola chicken pancetta short ribs kevin tenderloin, alcatra fatback beef ribs. Beef spare ribs sirloin fatback, rump burgdoggen doner ham beef ribs leberkas jowl shankle shank.`;
|
|
9
|
-
let newLineCount = output.split(/\n/).length
|
|
10
|
-
expect(newLineCount).toBe(paragraphs)
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
it.skip('should return an empty array without input', () => {
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
it.skip('should return the undefined if there is no data property', () => {
|
|
17
|
-
const input = { some: 'random', object: { with: ['nested', 'array'] } };
|
|
18
|
-
const output = mapData(input);
|
|
19
|
-
expect(output).to.be.undefined;
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
it.skip('should return the data property if passed an object with data', () => {
|
|
23
|
-
});
|
|
24
|
-
});
|