Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New branch #39

Open
wants to merge 53 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
7167864
Update calculator.test.js
himanshiLt Jan 21, 2022
fa95fc3
Update calculator.test.js
himanshiLt Jan 21, 2022
f29a528
Add new test
himanshiLt Jan 21, 2022
5d8fce9
Fix
himanshiLt Jan 21, 2022
bc2c82f
circle ci check
himanshiLt Feb 3, 2022
15dc990
Update README.md
himanshiLt Feb 15, 2022
e2bfb14
Merge branch 'master' into newBranch
himanshiLt Feb 22, 2022
adf97e6
Update comparision.test.js
himanshiLt Feb 22, 2022
9213123
Update .tas.yml
himanshiLt Feb 25, 2022
8a193d4
Update calculatorWithSuite.test.js
himanshiLt Mar 2, 2022
32de650
Update calculator.test.js
himanshiLt Mar 2, 2022
389038f
Update calculator.test.js
himanshiLt Mar 2, 2022
92f061a
Update README.md
himanshiLt Mar 2, 2022
c4925f2
Update calculatorWithSuite.test.js
himanshiLt Mar 2, 2022
6b33a57
Update calculatorWithSuite.test.js
himanshiLt Mar 3, 2022
b4b6af4
Update calculator.test.js
himanshiLt Mar 3, 2022
e815da3
Update calculatorWithSuite.test.js
himanshiLt Mar 17, 2022
aaf7368
Update calculatorWithSuite.test.js
himanshiLt Mar 17, 2022
20fd0f6
Update calculatorWithSuite.test.js
himanshiLt Mar 17, 2022
b7edcd7
Merge branch 'master' into newBranch
himanshiLt Mar 20, 2022
6fe29ea
Update comparision.js
himanshiLt Mar 21, 2022
d90a58f
Update calculatorWithSuite.test.js
himanshiLt Mar 23, 2022
11316e8
Merge branch 'master' into newBranch
himanshiLt Mar 31, 2022
d6cd0de
Update .tas.yml
himanshiLt Apr 29, 2022
ceefe74
Merge branch 'master' into newBranch
himanshiLt May 10, 2022
eeb1bb5
Update .tas.yml
himanshiLt May 10, 2022
d6ee8cf
Update .tas.yml
himanshiLt May 27, 2022
996b941
Update .tas.yml
himanshiLt May 27, 2022
727afc8
Update .tas.yml
himanshiLt Jun 7, 2022
461fab1
Update .tas.yml
himanshiLt Jun 14, 2022
24e4e25
Update .tas.yml
himanshiLt Jun 14, 2022
c842522
Update .tas.yml
himanshiLt Jun 14, 2022
54f7b66
Update .tas.yml
himanshiLt Jun 23, 2022
e0ed6f7
Merge branch 'master' into newBranch
himanshiLt Jun 23, 2022
9498824
Merge branch 'master' into newBranch
himanshiLt Jun 30, 2022
fd94f96
Update .tas.yml
himanshiLt Jun 30, 2022
f0c820e
Update .tas.yml
himanshiLt Jul 11, 2022
115ab36
Update calculator.test.js
himanshiLt Jul 11, 2022
9518ebf
Update .tas.yml
himanshiLt Jul 11, 2022
f723269
Update calculator.test.js
himanshiLt Jul 11, 2022
ef0d0cd
Update .tas.yml
himanshiLt Jul 11, 2022
636e104
Update calculator.test.js
himanshiLt Jul 11, 2022
4ae30de
Update calculator.test.js
himanshiLt Jul 11, 2022
f041522
Update calculator.test.js
himanshiLt Jul 11, 2022
60baf05
Update calculator.test.js
himanshiLt Jul 11, 2022
55aafb5
Update calculator.test.js
himanshiLt Jul 11, 2022
03e0535
Merge branch 'master' into newBranch
himanshiLt Jul 14, 2022
44f2742
Update calculator.test.js
himanshiLt Jul 14, 2022
47d5a9a
Update calculator.test.js
himanshiLt Jul 14, 2022
363c569
Update calculator.test.js
himanshiLt Jul 14, 2022
33d6f4a
Update calculator.test.js
himanshiLt Jul 14, 2022
14724c1
Update calculator.test.js
himanshiLt Jul 14, 2022
c931582
Update .tas.yml
himanshiLt Jul 15, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .tas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ postRun:
command:
- node --version
nodeVersion: 14.17.2
version: 1.0.1
version: 1.0.4
33 changes: 21 additions & 12 deletions src/calculator.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@ test("Returns about-us for spanish language", () => {

// test.todo('Skip a test');
test.skip("Skip a test", () => {
(getAboutUsLink("es-ES")).toBe("/acerca-de");
expect(getAboutUsLink("es-ES")).toBe("/acerca-de");
});

// test("Fail a test -1", () => {
// expect(getAboutUsLink("es-ES")).toBe("");
// });


// test("Blacklist a tesst", () => {
// test("Blacklist a test", () => {
// expect(getAboutUsLink("es-ES")).toBe("");
// });

Expand All @@ -38,13 +37,23 @@ test("Added by arjun", () => {
expect(getAboutUsLink(process.env.ENGLISHCODE)).toBe("/about-us");
});

test('adding should should detect odd number--', () => {
const number = Math.floor(Math.random() * 10);
const result = 11 % 2;
expect(result).toBe(1);
});
// test('adding should should detect odd number--', () => {
// const number = Math.floor(Math.random() * 10);
// const result = number % 2;
// expect(result).toBe(0);
// });

// test('new added', () => {
// const number = Math.floor(Math.random() * 10);
// const result = 10 % 2;
// expect(result).toBe(0);
// });

// test('new adding should should detect odd number--', () => {
// const number = Math.floor(Math.random() * 10);
// const result = number % 2;
// expect(result).toBe(0);
// });



test('new added', () => {
const result = 11 % 2;
expect(result).toBe(1);
});
9 changes: 4 additions & 5 deletions src/calculatorWithSuite.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const getAboutUsLink = require("./calculator");


describe('Test Language code_Expanded name to check for test suite_expand', function () {
// it("Returns about-us for english language", () => {
// expect(getAboutUsLink(process.env.ENGLISHCODE)).toBe("/about-us");
Expand All @@ -24,17 +25,15 @@ describe('Test Language code_Expanded name to check for test suite_expand', func
it("Returns about-us for czech language", () => {
expect(getAboutUsLink("cs")).toBe("/o nás");
});

// it("Fail czech language", () => {
// expect(getAboutUsLink("cs")).toBe("/o nas");
// });


// })
it("added new test newBranch wtestReturns about-us for czech language", () => {
expect(getAboutUsLink("cs")).toBe("/o nás");
});

it('should should detect odd number--', () => {
it('-should should detect odd number--', () => {
const number = Math.floor(Math.random() * 10);
const result = 11 % 2;
expect(result).toBe(1);
Expand Down
2 changes: 2 additions & 0 deletions src/comparision.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ const comparisionOperation = {
return a <= d;
}
}

module.exports = comparisionOperation