mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 12:03:46 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			625 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			625 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| "use strict";
 | |
| 
 | |
| const assert = require("node:assert/strict");
 | |
| 
 | |
| const {set_global, zrequire} = require("./lib/namespace.cjs");
 | |
| const {run_test} = require("./lib/test.cjs");
 | |
| 
 | |
| set_global("navigator", {
 | |
|     userAgent: "",
 | |
| });
 | |
| 
 | |
| const deprecated_feature_notice = zrequire("deprecated_feature_notice");
 | |
| 
 | |
| run_test("get_hotkey_deprecation_notice", () => {
 | |
|     const expected =
 | |
|         'translated HTML: We\'ve replaced the "Shift + C" hotkey with "X" to make this common shortcut easier to trigger.';
 | |
|     const actual = deprecated_feature_notice.get_hotkey_deprecation_notice("Shift + C", "X");
 | |
|     assert.equal(actual, expected);
 | |
| });
 |