Skip to content

Commit

Permalink
test(totp): Fix descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jhermsmeier committed Feb 4, 2019
1 parent 2eb85b4 commit 78ee0ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/totp.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var assert = require( 'assert' )
var hotp = require( '..' )
var totp = hotp.totp

describe( 'HOTP', function() {
describe( 'TOTP', function() {

context( 'RFC 6238', function() {

Expand Down Expand Up @@ -31,7 +31,7 @@ describe( 'HOTP', function() {
{ key: keySHA512, time: 20000000000, t: 0x0000000027BC86AA, token: '47863826', algorithm: 'sha512' },
]

context( 'Section 4.2', function() {
context( 'Section 4.2 Time Steps', function() {
values.forEach( function( test ) {
specify( `${test.time} -> ${test.t}`, function() {
assert.strictEqual( totp.t( test.time, 0, 30 ), test.t )
Expand Down

0 comments on commit 78ee0ad

Please sign in to comment.