Skip to content

Commit

Permalink
Update linting for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
legastero committed Nov 28, 2018
1 parent 4139667 commit 03f07bc
Show file tree
Hide file tree
Showing 7 changed files with 258 additions and 152 deletions.
6 changes: 3 additions & 3 deletions test/auth/digest-md5.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ test('DIGEST-MD5', function(t) {
);

const res = mech.response({
username: 'chris',
password: 'secret',
host: 'elwood.innosoft.com',
serviceType: 'imap'
password: 'secret',
serviceType: 'imap',
username: 'chris'
});

t.equal(
Expand Down
4 changes: 2 additions & 2 deletions test/auth/scram-sha-1.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ test('SCRAM', function(t) {
});

const creds = {
username: 'chris',
password: 'secret'
password: 'secret',
username: 'chris'
};

const initial = mech.response(creds);
Expand Down
4 changes: 2 additions & 2 deletions test/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ test('Connect using BOSH', function(t) {
t.plan(1);

const client = stanza.createClient({
boshURL: 'https://anon.lance.im/http-bind',
jid: 'anon@anon.lance.im',
transport: 'bosh',
boshURL: 'https://anon.lance.im/http-bind'
transport: 'bosh'
});

client.on('session:started', function() {
Expand Down
26 changes: 13 additions & 13 deletions test/hostmeta.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,34 +30,34 @@ const xml =
'</XRD>';

const json = {
subject: 'http://blog.example.com/article/id/314',
expires: '2010-01-30T09:30:00.000Z',
aliases: ['http://blog.example.com/cool_new_thing', 'http://blog.example.com/steve/article/7'],
properties: {
'http://blgx.example.net/ns/version': '1.3',
'http://blgx.example.net/ns/ext': ''
},
expires: '2010-01-30T09:30:00.000Z',
links: [
{
rel: 'author',
type: 'text/html',
href: 'http://blog.example.com/author/steve',
properties: {
'http://example.com/role': 'editor'
},
rel: 'author',
titles: {
default: 'About the Author',
'en-us': 'Author Information'
},
properties: {
'http://example.com/role': 'editor'
}
type: 'text/html'
},
{
rel: 'author',
href: 'http://example.com/author/john',
rel: 'author',
titles: {
default: 'The other author'
}
}
]
],
properties: {
'http://blgx.example.net/ns/ext': '',
'http://blgx.example.net/ns/version': '1.3'
},
subject: 'http://blog.example.com/article/id/314'
};

test('XRD', function(t) {
Expand Down
Loading

0 comments on commit 03f07bc

Please sign in to comment.