Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/javascript-tests.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
language: node_js
node_js:
- "node"
- "iojs"
before_script:
- "15"
before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script:
- karma start karma.conf.js
before_script:
- npm install
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Generated on Wed Jun 18 2014 09:33:44 GMT+0100 (BST)

module.exports = function(config) {
var browsers = ['PhantomJS', 'Firefox'];
var browsers = ['Firefox'];

if (!process.TRAVIS) {
browsers.push('Chrome');
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
},
"homepage": "https://github.com/ahmednuaman/javascript-tests",
"dependencies": {
"karma": "^0.12.32",
"karma-jasmine": "^0.3.5",
"karma-phantomjs-launcher": "^0.1.4"
"jasmine-core": "^3.7.1",
"karma": "^6.6.0",
"karma-jasmine": "^0.3.5"
},
"devDependencies": {
"karma-chrome-launcher": "^0.1.12",
Expand Down
2 changes: 1 addition & 1 deletion test/clone-object.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
describe('clone object', function () {
it('should clone an object', function () {
var expected = {name: 'Ahmed', age: 27, skills: ['cycling', 'walking', 'eating']},
obj = {};
obj = {...expected};

expect(obj).toEqual(expected);
expect(obj).not.toBe(expected);
Expand Down
2 changes: 1 addition & 1 deletion test/flatten-array.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ describe('flatten array', function () {
it('should flatten an array', function () {
var arr = [1, 2, [1, 2, [3, 4, 5, [1]]], 2, [2]],
expected = [1, 1, 1, 2, 2, 2, 2, 3, 4, 5];

arr = arr.flat(3).sort();
expect(arr).toEqual(expected);
});
});
2 changes: 1 addition & 1 deletion test/scoping.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('scoping', function () {
};

Module.prototype.req = function() {
return request(this.method);
return request(() => this.method());
};

expect(mod.req()).toBe('bar');
Expand Down
Loading