mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-05-02 14:36:08 -04:00
making I18n class testable, adding minimal test
This commit is contained in:
parent
9d2e282772
commit
2a19b42b15
2 changed files with 35 additions and 2 deletions
|
@ -538,6 +538,18 @@ jQuery.PrivateBin = function($, sjcl, Base64, RawDeflate) {
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* resets state, used for unit testing
|
||||
*
|
||||
* @name I18n.reset
|
||||
* @function
|
||||
*/
|
||||
me.reset = function()
|
||||
{
|
||||
language = null;
|
||||
translations = {};
|
||||
}
|
||||
|
||||
return me;
|
||||
})(window, document);
|
||||
|
||||
|
@ -810,7 +822,6 @@ jQuery.PrivateBin = function($, sjcl, Base64, RawDeflate) {
|
|||
$cipherData = $templates = id = symmetricKey = null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* init navigation manager
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue