Skip to content

Commit 2e8e260

Browse files
author
Ankit Saini
authored
Merge pull request #694 from postmanlabs/release/v1.7.1
Release v1.7.1
2 parents b2f0477 + d11cbcf commit 2e8e260

File tree

6 files changed

+30
-3
lines changed

6 files changed

+30
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
v1.7.1 (March 29, 2023)
2+
* Minor fix - Add language labels for Rust and Kotlin
3+
14
v1.7.0 (March 28, 2023)
25
* Fix for - [#192](https://github.com/postmanlabs/postman-code-generators/issues/192) Added support for Rust reqwest code snippets.
36

lib/assets/languageLabels.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"python": "Python",
77
"ruby": "Ruby",
88
"java": "Java",
9+
"kotlin": "Kotlin",
910
"c": "C",
1011
"php": "PHP",
1112
"objective-c": "Objective-C",
@@ -19,5 +20,6 @@
1920
"ocaml": "OCaml",
2021
"shell": "Shell",
2122
"dart": "Dart",
22-
"r": "R"
23+
"r": "R",
24+
"rust": "Rust"
2325
}

npm/test.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ else
5959
# check for .gitignore, license.md, readme.md, .eslintrc and package.json
6060
mocha ./test/system/repository.test.js;
6161

62+
# runs test to see if the codegen interface is implemented correctly
63+
mocha ./test/unit/lib.test.js;
64+
6265
# Common structure and npm test for each codegen.
6366
echo -e "Running codegen-structure tests on all the codegens";
6467
for directory in codegens/*; do

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "postman-code-generators",
3-
"version": "1.7.0",
3+
"version": "1.7.1",
44
"description": "Generates code snippets for a postman collection",
55
"main": "index.js",
66
"directories": {

test/unit/lib.test.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const expect = require('chai').expect,
2+
lib = require('../../lib'),
3+
labels = require('../../lib/assets/languageLabels.json');
4+
5+
describe('lib', function () {
6+
describe('getLanguageList', function () {
7+
it('should test that each language has a valid label', function () {
8+
const list = lib.getLanguageList();
9+
10+
expect(list).to.be.an('array');
11+
12+
list.forEach(function (lang) {
13+
expect(lang).to.have.property('key');
14+
expect(lang).to.have.property('label');
15+
expect(lang.label).to.equal(labels[lang.key]);
16+
});
17+
});
18+
});
19+
});

0 commit comments

Comments
 (0)