Artifact
2e025788cf11b7c6571a87b27fd7cfbf472a3ee8d828aa7592d3b9d866374571:
0000: 2f 2f 20 6d 61 6b 65 20 65 78 70 65 63 74 20 67 // make expect g
0010: 6c 6f 62 61 6c 6c 79 20 61 76 61 69 6c 61 62 6c lobally availabl
0020: 65 0a 77 69 6e 64 6f 77 2e 64 65 66 61 75 6c 74 e.window.default
0030: 42 72 61 63 6b 65 74 73 20 3d 20 72 69 6f 74 2e Brackets = riot.
0040: 73 65 74 74 69 6e 67 73 2e 62 72 61 63 6b 65 74 settings.bracket
0050: 73 0a 77 69 6e 64 6f 77 2e 65 78 70 65 63 74 20 s.window.expect
0060: 3d 20 63 68 61 69 2e 65 78 70 65 63 74 20 2f 2f = chai.expect //
0070: 20 65 73 6c 69 6e 74 2d 64 69 73 61 62 6c 65 2d eslint-disable-
0080: 6c 69 6e 65 0a 0a 62 65 66 6f 72 65 28 66 75 6e line..before(fun
0090: 63 74 69 6f 6e 28 29 20 7b 0a 20 20 72 69 6f 74 ction() {. riot
00a0: 2e 75 6e 72 65 67 69 73 74 65 72 28 27 72 69 6f .unregister('rio
00b0: 74 2d 74 6d 70 27 29 0a 20 20 72 69 6f 74 2e 75 t-tmp'). riot.u
00c0: 6e 72 65 67 69 73 74 65 72 28 27 72 69 6f 74 2d nregister('riot-
00d0: 74 6d 70 2d 76 61 6c 75 65 27 29 0a 20 20 72 69 tmp-value'). ri
00e0: 6f 74 2e 75 6e 72 65 67 69 73 74 65 72 28 27 72 ot.unregister('r
00f0: 69 6f 74 2d 74 6d 70 2d 73 75 62 27 29 0a 7d 29 iot-tmp-sub').})
0100: 0a 0a 61 66 74 65 72 28 66 75 6e 63 74 69 6f 6e ..after(function
0110: 28 29 20 7b 0a 20 20 72 69 6f 74 2e 73 65 74 74 () {. riot.sett
0120: 69 6e 67 73 2e 62 72 61 63 6b 65 74 73 20 3d 20 ings.brackets =
0130: 77 69 6e 64 6f 77 2e 64 65 66 61 75 6c 74 42 72 window.defaultBr
0140: 61 63 6b 65 74 73 0a 7d 29 ackets.})