Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release/v0.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Kocal committed Mar 18, 2017
2 parents 0d3a28c + b7bd5b7 commit df37d29
Show file tree
Hide file tree
Showing 13 changed files with 3,978 additions and 77 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,5 @@ jspm_packages
.node_repl_history

# Created by .ignore support plugin (hsz.mobi)
/.idea
/doc/
3 changes: 0 additions & 3 deletions .idea/copyright/profiles_settings.xml

This file was deleted.

15 changes: 0 additions & 15 deletions .idea/django-tornado-websockets-client.iml

This file was deleted.

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

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

7 changes: 0 additions & 7 deletions .idea/inspectionProfiles/profiles_settings.xml

This file was deleted.

16 changes: 0 additions & 16 deletions .idea/misc.xml

This file was deleted.

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

This file was deleted.

4 changes: 0 additions & 4 deletions .idea/watcherTasks.xml

This file was deleted.

1 change: 0 additions & 1 deletion examples/js/tws/modules

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "django-tornado-websockets-client",
"version": "0.2.0-beta",
"version": "0.2.0",
"description": "Client-side library for django-tornado-websockets project",
"scripts": {
"test": "./node_modules/karma/bin/karma start karma.conf.js",
Expand Down
14 changes: 7 additions & 7 deletions tests/module_test-es6.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
define(window.__env__['dependencies'], function (TornadoWebSocket) {
describe('TornadoWebSocket.Module', function () {

var MyModule = class extends TornadoWebSocket.Module {
class MyModule extends TornadoWebSocket.Module {
constructor(prefix) {
super(prefix)
}
Expand All @@ -15,16 +15,16 @@ define(window.__env__['dependencies'], function (TornadoWebSocket) {
})

it('should be inherited by a sub class', function () {
var myModule = new MyModule('my_module')
let myModule = new MyModule('my_module')

expect(myModule._name).toBe('module_my_module')
})
})

describe('on()', function () {
it('should call tws.on() with a prefix', function () {
var tws = new TornadoWebSocket('path')
var myModule = new MyModule('my_module_')
let tws = new TornadoWebSocket('path')
let myModule = new MyModule('my_module_')

spyOn(tws, 'on')

Expand All @@ -37,8 +37,8 @@ define(window.__env__['dependencies'], function (TornadoWebSocket) {

describe('emit()', function () {
it('should call tws.emit() with a prefix', function () {
var tws = new TornadoWebSocket('path')
var myModule = new MyModule('my_module_')
let tws = new TornadoWebSocket('path')
let myModule = new MyModule('my_module_')

spyOn(tws, 'emit')

Expand All @@ -49,4 +49,4 @@ define(window.__env__['dependencies'], function (TornadoWebSocket) {
})
})
})
})
})
Loading

0 comments on commit df37d29

Please sign in to comment.